#4E2185#4E2185

#4E2185 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.156 H 299.0°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2185
RGBrgb(78, 33, 133)
HSLhsl(267, 60%, 33%)
HSVhsv(267, 75%, 52%)
CMYKcmyk(41.4%, 75.2%, 0%, 47.8%)
CIE-LABlab(24.95, 41.85, -47.84)
CIE-LCHlch(24.95, 63.56, 311.18°)
OKLaboklab(37.18% 0.0759 -0.1367)
OKLCHoklch(37.18% 0.156 299)
XYZxyz(7.9183, 4.4008, 22.6180)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2185 #588521
analogous
#212685 #4E2185 #802185
triadic
#4E2185 #854E21 #21854E
tetradic
#4E2185 #852126 #588521 #218580
square
#4E2185 #852126 #588521 #218580
split-complementary
#4E2185 #858021 #268521
monochromatic
#140923 #311554 #4E2185 #6B2DB6 #8A4DD3

Accessibility & contrast

On white

11.17
#4E2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2185
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2185#FFFFFF#000000##FFFFFF
##4E21851.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003A83
Tritanopia (blue-blind)
#413A51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2185;
/* rgb */ color: rgb(78, 33, 133);
/* oklch */ color: oklch(37.2% 0.156 299.0);
Tailwind
colors: {
  custom: {
    50: '#8561a9',
    500: '#4e2185',
    950: '#000000',
  },
}
SCSS
$custom: #4e2185;
$custom-light: #8561a9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2185",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 267,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37178,
    "c": 0.15631,
    "h": 299
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#4E2185
secondary
#86B64C
accent
#E3449C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2185

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

Preview Lab → · Contrast checker → · Palette generator →

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