#8A87F0

A color in the Violet family

#8a87f0 is a color in the Violet family: RGB(138, 135, 240), HSL(242°, 78%, 74%), CMYK(43%, 44%, 0%, 6%). Closest named color: cornflowerblue. Contrast is 3.09:1 on white and 6.8:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a87f0
RGBrgb(138 135 240)
RGB (legacy)rgb(138, 135, 240)
RGB %rgb(54% 53% 94%)
HSLhsl(242 78% 74%)
HSV / HSBhsv(242, 44%, 94%)
HWBhwb(242 53% 6%)
CMYKcmyk(43%, 44%, 0%, 6%)
CIELAB (D50)lab(60.16 21.02 -53.33)
LCHlch(60.16 57.32 291.51)
OKLaboklab(0.6726 0.0338 -0.1487)
OKLCHoklch(0.6726 0.1525 282.79)
Decimal9078768

Properties

Color ToneViolet
Closest named colorcornflowerblue ΔE 5.6
Closest web-safe color#9999ff
Hue242°
Saturation (HSL / HSV)78% / 44%
Lightness (HSL)74%
Brightness or Value (HSV)94%
Luminance (Rec.601 / Rec.709)58% / 56%
Relative luminance (WCAG)0.2902
Red / Green / Blue138 / 135 / 240

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.09:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
6.80: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.6 / -44.1 · As background with white / black text: Lc -63 / 46.4

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: #8a87f0;
  --color-brand-oklch: oklch(67.26% 0.1525 282.79);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 135 240 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a87f0] text-[#8a87f0] border-[#8a87f0]">