#4E2F94#4E2F94

#4E2F94 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.157 H 292.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4E2F94
RGBrgb(78, 47, 148)
HSLhsl(258, 52%, 38%)
HSVhsv(258, 68%, 58%)
CMYKcmyk(47.3%, 68.2%, 0%, 42%)
CIE-LABlab(28.88, 38.62, -50.75)
CIE-LCHlch(28.88, 63.78, 307.27°)
OKLaboklab(40.37% 0.0586 -0.1453)
OKLCHoklch(40.37% 0.157 292)
XYZxyz(9.5022, 5.7905, 28.6283)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F94 #75942F
analogous
#2F4294 #4E2F94 #802F94
triadic
#4E2F94 #944E2F #2F944E
tetradic
#4E2F94 #942F42 #75942F #2F9480
square
#4E2F94 #942F42 #75942F #2F9480
split-complementary
#4E2F94 #94802F #42942F
monochromatic
#1D1137 #362066 #4E2F94 #673EC2 #8B6DD1

Accessibility & contrast

On white

9.73
#4E2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F94
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F94#FFFFFF#000000##FFFFFF
##4E2F941.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#39485D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2f94;
/* rgb */ color: rgb(78, 47, 148);
/* oklch */ color: oklch(40.4% 0.157 292.0);
Tailwind
colors: {
  custom: {
    50: '#866ab4',
    500: '#4e2f94',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f94;
$custom-light: #866ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f94",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 258.416,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40367,
    "c": 0.15667,
    "h": 292
  },
  "luminance": 0.05791
}

Semantic roles & 50–950 ramp

primary
#4E2F94
secondary
#9FB867
accent
#DB4DAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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