#4E2682#4E2682

#4E2682 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.146 H 299.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4E2682
RGBrgb(78, 38, 130)
HSLhsl(266, 55%, 33%)
HSVhsv(266, 71%, 51%)
CMYKcmyk(40%, 70.8%, 0%, 49%)
CIE-LABlab(25.62, 38.49, -44.88)
CIE-LCHlch(25.62, 59.12, 310.62°)
OKLaboklab(37.57% 0.0712 -0.128)
OKLCHoklch(37.57% 0.146 299.1)
XYZxyz(7.8633, 4.6175, 21.5918)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2682 #5A8226
analogous
#262C82 #4E2682 #7C2682
triadic
#4E2682 #824E26 #26824E
tetradic
#4E2682 #82262C #5A8226 #26827C
square
#4E2682 #82262C #5A8226 #26827C
split-complementary
#4E2682 #827C26 #2C8226
monochromatic
#150A23 #321853 #4E2682 #6A34B1 #8955CD

Accessibility & contrast

On white

10.92
#4E2682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E2682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2682
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2682#FFFFFF#000000##FFFFFF
##4E26821.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#423C51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2682;
/* rgb */ color: rgb(78, 38, 130);
/* oklch */ color: oklch(37.6% 0.146 299.1);
Tailwind
colors: {
  custom: {
    50: '#8464a7',
    500: '#4e2682',
    950: '#000000',
  },
}
SCSS
$custom: #4e2682;
$custom-light: #8464a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2682",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 266.087,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37571,
    "c": 0.14646,
    "h": 299.1
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#4E2682
secondary
#88B252
accent
#DE4A9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2682

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

Preview Lab → · Contrast checker → · Palette generator →

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