#4E2684#4E2684

#4E2684 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.149 H 298.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4E2684
RGBrgb(78, 38, 132)
HSLhsl(266, 55%, 33%)
HSVhsv(266, 71%, 52%)
CMYKcmyk(40.9%, 71.2%, 0%, 48.2%)
CIE-LABlab(25.78, 39.03, -45.87)
CIE-LCHlch(25.78, 60.23, 310.40°)
OKLaboklab(37.74% 0.0709 -0.1309)
OKLCHoklch(37.74% 0.149 298.4)
XYZxyz(7.9988, 4.6718, 22.3056)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2684 #5C8426
analogous
#262D84 #4E2684 #7D2684
triadic
#4E2684 #844E26 #26844E
tetradic
#4E2684 #84262D #5C8426 #26847D
square
#4E2684 #84262D #5C8426 #26847D
split-complementary
#4E2684 #847D26 #2D8426
monochromatic
#160B25 #321854 #4E2684 #6A34B4 #8956CE

Accessibility & contrast

On white

10.86
#4E2684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2684
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2684#FFFFFF#000000##FFFFFF
##4E26841.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#413D52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2684;
/* rgb */ color: rgb(78, 38, 132);
/* oklch */ color: oklch(37.7% 0.149 298.4);
Tailwind
colors: {
  custom: {
    50: '#8564a8',
    500: '#4e2684',
    950: '#000000',
  },
}
SCSS
$custom: #4e2684;
$custom-light: #8564a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2684",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 265.532,
    "s": 55.294,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37737,
    "c": 0.14886,
    "h": 298.4
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#4E2684
secondary
#8AB353
accent
#DF499F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4E2684

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

Preview Lab → · Contrast checker → · Palette generator →

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