#4E2F74#4E2F74

#4E2F74 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.9% C 0.115 H 301.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4E2F74
RGBrgb(78, 47, 116)
HSLhsl(267, 42%, 32%)
HSVhsv(267, 59%, 45%)
CMYKcmyk(32.8%, 59.5%, 0%, 54.5%)
CIE-LABlab(26.49, 29.50, -34.61)
CIE-LCHlch(26.49, 45.48, 310.44°)
OKLaboklab(37.87% 0.0609 -0.0979)
OKLCHoklch(37.87% 0.115 301.9)
XYZxyz(7.3101, 4.9137, 17.0829)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F74 #55742F
analogous
#2F3374 #4E2F74 #712F74
triadic
#4E2F74 #744E2F #2F744E
tetradic
#4E2F74 #742F33 #55742F #2F7471
square
#4E2F74 #742F33 #55742F #2F7471
split-complementary
#4E2F74 #74712F #33742F
monochromatic
#130C1D #311D48 #4E2F74 #6B41A0 #8A5FBE

Accessibility & contrast

On white

10.59
#4E2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F74
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F74#FFFFFF#000000##FFFFFF
##4E2F741.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113E76
Deuteranopia (green-blind)
#1E3E72
Tritanopia (blue-blind)
#473D4C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2f74;
/* rgb */ color: rgb(78, 47, 116);
/* oklch */ color: oklch(37.9% 0.115 301.9);
Tailwind
colors: {
  custom: {
    50: '#82699c',
    500: '#4e2f74',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f74;
$custom-light: #82699c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f74",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 266.957,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37874,
    "c": 0.11526,
    "h": 301.9
  },
  "luminance": 0.04914
}

Semantic roles & 50–950 ramp

primary
#4E2F74
secondary
#83A55A
accent
#D2569A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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