#6E2A87#6E2A87

#6E2A87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.156 H 315.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#6E2A87
RGBrgb(110, 42, 135)
HSLhsl(284, 53%, 35%)
HSVhsv(284, 69%, 53%)
CMYKcmyk(18.5%, 68.9%, 0%, 47.1%)
CIE-LABlab(31.16, 44.95, -38.83)
CIE-LCHlch(31.16, 59.40, 319.18°)
OKLaboklab(42.62% 0.1113 -0.1091)
OKLCHoklch(42.62% 0.156 315.6)
XYZxyz(11.6309, 6.7206, 23.6015)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2A87 #43872A
analogous
#402A87 #6E2A87 #872A72
triadic
#6E2A87 #876E2A #2A876E
tetradic
#6E2A87 #87402A #43872A #2A7287
square
#6E2A87 #87402A #43872A #2A7287
split-complementary
#6E2A87 #72872A #2A8740
monochromatic
#220D2A #481B58 #6E2A87 #9439B6 #AF5ECD

Accessibility & contrast

On white

8.96
#6E2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6E2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2A87
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2A87#FFFFFF#000000##FFFFFF
##6E2A871.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#294B85
Tritanopia (blue-blind)
#6C3C55
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6e2a87;
/* rgb */ color: rgb(110, 42, 135);
/* oklch */ color: oklch(42.6% 0.156 315.6);
Tailwind
colors: {
  custom: {
    50: '#9b69aa',
    500: '#6e2a87',
    950: '#000000',
  },
}
SCSS
$custom: #6e2a87;
$custom-light: #9b69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2a87",
  "rgb": {
    "r": 110,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 283.871,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42617,
    "c": 0.15588,
    "h": 315.6
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#6E2A87
secondary
#72B35A
accent
#DC4C73
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6E2A87

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#6E2A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva