#4E2F72#4E2F72

#4E2F72 is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.7% C 0.113 H 302.7°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4E2F72
RGBrgb(78, 47, 114)
HSLhsl(268, 42%, 32%)
HSVhsv(268, 59%, 45%)
CMYKcmyk(31.6%, 58.8%, 0%, 55.3%)
CIE-LABlab(26.35, 28.95, -33.55)
CIE-LCHlch(26.35, 44.32, 310.79°)
OKLaboklab(37.73% 0.0609 -0.0947)
OKLCHoklch(37.73% 0.113 302.7)
XYZxyz(7.1950, 4.8676, 16.4768)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F72 #53722F
analogous
#2F3272 #4E2F72 #702F72
triadic
#4E2F72 #724E2F #2F724E
tetradic
#4E2F72 #722F32 #53722F #2F7270
square
#4E2F72 #722F32 #53722F #2F7270
split-complementary
#4E2F72 #72702F #32722F
monochromatic
#130B1B #301D47 #4E2F72 #6C419D #8A5FBD

Accessibility & contrast

On white

10.64
#4E2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F72
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F72#FFFFFF#000000##FFFFFF
##4E2F721.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E74
Deuteranopia (green-blind)
#203E70
Tritanopia (blue-blind)
#473C4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2f72;
/* rgb */ color: rgb(78, 47, 114);
/* oklch */ color: oklch(37.7% 0.113 302.7);
Tailwind
colors: {
  custom: {
    50: '#82699b',
    500: '#4e2f72',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f72;
$custom-light: #82699b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f72",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 267.761,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37733,
    "c": 0.11261,
    "h": 302.7
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#4E2F72
secondary
#81A35A
accent
#D15698
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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