#6E2A96#6E2A96

#6E2A96 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.171 H 309.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#6E2A96
RGBrgb(110, 42, 150)
HSLhsl(278, 56%, 38%)
HSVhsv(278, 72%, 59%)
CMYKcmyk(26.7%, 72%, 0%, 41.2%)
CIE-LABlab(32.20, 48.29, -46.40)
CIE-LCHlch(32.20, 66.97, 316.14°)
OKLaboklab(43.69% 0.1099 -0.1313)
OKLCHoklch(43.69% 0.171 309.9)
XYZxyz(12.7623, 7.1732, 29.5605)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E2A96 #52962A
analogous
#382A96 #6E2A96 #962A88
triadic
#6E2A96 #966E2A #2A966E
tetradic
#6E2A96 #96382A #52962A #2A8896
square
#6E2A96 #96382A #52962A #2A8896
split-complementary
#6E2A96 #88962A #2A9638
monochromatic
#280F36 #4B1D66 #6E2A96 #9137C6 #AB66D4

Accessibility & contrast

On white

8.63
#6E2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6E2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E2A96
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E2A96#FFFFFF#000000##FFFFFF
##6E2A961.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#154D94
Tritanopia (blue-blind)
#68425D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6e2a96;
/* rgb */ color: rgb(110, 42, 150);
/* oklch */ color: oklch(43.7% 0.171 309.9);
Tailwind
colors: {
  custom: {
    50: '#9c6ab6',
    500: '#6e2a96',
    950: '#000000',
  },
}
SCSS
$custom: #6e2a96;
$custom-light: #9c6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#6e2a96",
  "rgb": {
    "r": 110,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 277.778,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43687,
    "c": 0.17123,
    "h": 309.9
  },
  "luminance": 0.07173
}

Semantic roles & 50–950 ramp

primary
#6E2A96
secondary
#82BA61
accent
#E04880
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0711
muted
#7E7A80

Preview Lab

Preview with #6E2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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