#8A4ECC

A color in the Violet family

#8a4ecc is a color in the Violet family: RGB(138, 78, 204), HSL(269°, 55%, 55%), CMYK(32%, 62%, 0%, 20%). Closest named color: darkorchid. Contrast is 5.2:1 on white and 4.04:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a4ecc
RGBrgb(138 78 204)
RGB (legacy)rgb(138, 78, 204)
RGB %rgb(54% 31% 80%)
HSLhsl(269 55% 55%)
HSV / HSBhsv(269, 62%, 80%)
HWBhwb(269 31% 20%)
CMYKcmyk(32%, 62%, 0%, 20%)
CIELAB (D50)lab(45.33 44.19 -56.71)
LCHlch(45.33 71.89 307.93)
OKLaboklab(0.5552 0.1017 -0.159)
OKLCHoklch(0.5552 0.1888 302.6)
Decimal9064140

Properties

Color ToneViolet
Closest named colordarkorchid ΔE 5.2
Closest web-safe color#9966cc
Hue269°
Saturation (HSL / HSV)55% / 62%
Lightness (HSL)55%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)43% / 39%
Relative luminance (WCAG)0.1521
Red / Green / Blue138 / 78 / 204

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 75.3 / -26.5 · As background with white / black text: Lc -80.6 / 28.8

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: #8a4ecc;
  --color-brand-oklch: oklch(55.52% 0.1888 302.6);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 78 204 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a4ecc] text-[#8a4ecc] border-[#8a4ecc]">