#A87FEB

A color in the Violet family

#a87feb is a color in the Violet family: RGB(168, 127, 235), HSL(263°, 73%, 71%), CMYK(29%, 46%, 0%, 8%). Closest named color: mediumpurple. Contrast is 3.04:1 on white and 6.9:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#a87feb
RGBrgb(168 127 235)
RGB (legacy)rgb(168, 127, 235)
RGB %rgb(66% 50% 92%)
HSLhsl(263 73% 71%)
HSV / HSBhsv(263, 46%, 92%)
HWBhwb(263 50% 8%)
CMYKcmyk(29%, 46%, 0%, 8%)
CIELAB (D50)lab(60.75 32.96 -49.43)
LCHlch(60.75 59.41 303.69)
OKLaboklab(0.6811 0.0785 -0.1375)
OKLCHoklch(0.6811 0.1583 299.72)
Decimal11042795

Properties

Color ToneViolet
Closest named colormediumpurple ΔE 5.5
Closest web-safe color#9966ff
Hue263°
Saturation (HSL / HSV)73% / 46%
Lightness (HSL)71%
Brightness or Value (HSV)92%
Luminance (Rec.601 / Rec.709)59% / 56%
Relative luminance (WCAG)0.295
Red / Green / Blue168 / 127 / 235

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.04:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
6.90:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 57.1 / -44.7 · As background with white / black text: Lc -62.4 / 47

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #a87feb;
  --color-brand-oklch: oklch(68.11% 0.1583 299.72);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(168 127 235 / 50%); }
/* Tailwind CSS */
<div class="bg-[#a87feb] text-[#a87feb] border-[#a87feb]">