#4E2F95#4E2F95

#4E2F95 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.158 H 291.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4E2F95
RGBrgb(78, 47, 149)
HSLhsl(258, 52%, 38%)
HSVhsv(258, 68%, 58%)
CMYKcmyk(47.7%, 68.5%, 0%, 41.6%)
CIE-LABlab(28.96, 38.91, -51.23)
CIE-LCHlch(28.96, 64.33, 307.22°)
OKLaboklab(40.45% 0.0585 -0.1467)
OKLCHoklch(40.45% 0.158 291.7)
XYZxyz(9.5817, 5.8223, 29.0469)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F95 #76952F
analogous
#2F4395 #4E2F95 #812F95
triadic
#4E2F95 #954E2F #2F954E
tetradic
#4E2F95 #952F43 #76952F #2F9581
square
#4E2F95 #952F43 #76952F #2F9581
split-complementary
#4E2F95 #95812F #43952F
monochromatic
#1D1238 #362066 #4E2F95 #673FC2 #8C6DD1

Accessibility & contrast

On white

9.70
#4E2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F95
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F95#FFFFFF#000000##FFFFFF
##4E2F951.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#38485E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2f95;
/* rgb */ color: rgb(78, 47, 149);
/* oklch */ color: oklch(40.5% 0.158 291.7);
Tailwind
colors: {
  custom: {
    50: '#866ab5',
    500: '#4e2f95',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f95;
$custom-light: #866ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f95",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 258.235,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40451,
    "c": 0.15793,
    "h": 291.7
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#4E2F95
secondary
#A0B867
accent
#DB4CB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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