#4E2686#4E2686

#4E2686 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.151 H 297.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4E2686
RGBrgb(78, 38, 134)
HSLhsl(265, 56%, 34%)
HSVhsv(265, 72%, 53%)
CMYKcmyk(41.8%, 71.6%, 0%, 47.5%)
CIE-LABlab(25.94, 39.58, -46.85)
CIE-LCHlch(25.94, 61.33, 310.19°)
OKLaboklab(37.91% 0.0705 -0.1338)
OKLCHoklch(37.91% 0.151 297.8)
XYZxyz(8.1370, 4.7270, 23.0333)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2686 #5E8626
analogous
#262E86 #4E2686 #7E2686
triadic
#4E2686 #864E26 #26864E
tetradic
#4E2686 #86262E #5E8626 #26867E
square
#4E2686 #86262E #5E8626 #26867E
split-complementary
#4E2686 #867E26 #2E8626
monochromatic
#160B27 #321856 #4E2686 #6A34B6 #8957CF

Accessibility & contrast

On white

10.79
#4E2686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2686
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2686#FFFFFF#000000##FFFFFF
##4E26861.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#403D53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2686;
/* rgb */ color: rgb(78, 38, 134);
/* oklch */ color: oklch(37.9% 0.151 297.8);
Tailwind
colors: {
  custom: {
    50: '#8564aa',
    500: '#4e2686',
    950: '#000000',
  },
}
SCSS
$custom: #4e2686;
$custom-light: #8564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2686",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 134
  },
  "hsl": {
    "h": 265,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37906,
    "c": 0.15124,
    "h": 297.8
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#4E2686
secondary
#8CB454
accent
#DF49A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4E2686

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

Preview Lab → · Contrast checker → · Palette generator →

#4E2686 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva