#4E2F71#4E2F71

#4E2F71 is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.7% C 0.111 H 303.1°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4E2F71
RGBrgb(78, 47, 113)
HSLhsl(268, 41%, 31%)
HSVhsv(268, 58%, 44%)
CMYKcmyk(31%, 58.4%, 0%, 55.7%)
CIE-LABlab(26.29, 28.68, -33.02)
CIE-LCHlch(26.29, 43.73, 310.97°)
OKLaboklab(37.66% 0.0608 -0.0932)
OKLCHoklch(37.66% 0.111 303.1)
XYZxyz(7.1384, 4.8450, 16.1787)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F71 #52712F
analogous
#2F3171 #4E2F71 #6F2F71
triadic
#4E2F71 #714E2F #2F714E
tetradic
#4E2F71 #712F31 #52712F #2F716F
square
#4E2F71 #712F31 #52712F #2F716F
split-complementary
#4E2F71 #716F2F #31712F
monochromatic
#120B1B #301D46 #4E2F71 #6C419C #8A5EBC

Accessibility & contrast

On white

10.67
#4E2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F71
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F71#FFFFFF#000000##FFFFFF
##4E2F711.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E73
Deuteranopia (green-blind)
#203E6F
Tritanopia (blue-blind)
#483C4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2f71;
/* rgb */ color: rgb(78, 47, 113);
/* oklch */ color: oklch(37.7% 0.111 303.1);
Tailwind
colors: {
  custom: {
    50: '#82699a',
    500: '#4e2f71',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f71;
$custom-light: #82699a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f71",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 268.182,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37664,
    "c": 0.11128,
    "h": 303.1
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#4E2F71
secondary
#80A25A
accent
#D15798
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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