#4E2F8D#4E2F8D

#4E2F8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.148 H 293.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4E2F8D
RGBrgb(78, 47, 141)
HSLhsl(260, 50%, 37%)
HSVhsv(260, 67%, 55%)
CMYKcmyk(44.7%, 66.7%, 0%, 44.7%)
CIE-LABlab(28.32, 36.58, -47.35)
CIE-LCHlch(28.32, 59.84, 307.69°)
OKLaboklab(39.78% 0.0595 -0.1353)
OKLCHoklch(39.78% 0.148 293.8)
XYZxyz(8.9648, 5.5756, 25.7980)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F8D #6E8D2F
analogous
#2F3F8D #4E2F8D #7D2F8D
triadic
#4E2F8D #8D4E2F #2F8D4E
tetradic
#4E2F8D #8D2F3F #6E8D2F #2F8D7D
square
#4E2F8D #8D2F3F #6E8D2F #2F8D7D
split-complementary
#4E2F8D #8D7D2F #3F8D2F
monochromatic
#1B1031 #35205F #4E2F8D #673EBB #8A69CD

Accessibility & contrast

On white

9.93
#4E2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F8D
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F8D#FFFFFF#000000##FFFFFF
##4E2F8D1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#3C4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2f8d;
/* rgb */ color: rgb(78, 47, 141);
/* oklch */ color: oklch(39.8% 0.148 293.8);
Tailwind
colors: {
  custom: {
    50: '#8569af',
    500: '#4e2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f8d;
$custom-light: #8569af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f8d",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 259.787,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39785,
    "c": 0.14782,
    "h": 293.8
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#4E2F8D
secondary
#9AB464
accent
#DA4EAC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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