#4E2974#4E2974

#4E2974 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.9% C 0.125 H 303.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4E2974
RGBrgb(78, 41, 116)
HSLhsl(270, 48%, 31%)
HSVhsv(270, 65%, 45%)
CMYKcmyk(32.8%, 64.7%, 0%, 54.5%)
CIE-LABlab(25.16, 33.04, -36.75)
CIE-LCHlch(25.16, 49.42, 311.96°)
OKLaboklab(36.9% 0.0691 -0.1041)
OKLCHoklch(36.9% 0.125 303.6)
XYZxyz(7.0865, 4.4665, 17.0084)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2974 #4F7429
analogous
#292974 #4E2974 #732974
triadic
#4E2974 #744E29 #29744E
tetradic
#4E2974 #742929 #4F7429 #297473
square
#4E2974 #742929 #4F7429 #297473
split-complementary
#4E2974 #747329 #297429
monochromatic
#11091A #301947 #4E2974 #6C39A1 #8B55C3

Accessibility & contrast

On white

11.09
#4E2974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E2974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2974
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2974#FFFFFF#000000##FFFFFF
##4E29741.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#153C72
Tritanopia (blue-blind)
#47394A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2974;
/* rgb */ color: rgb(78, 41, 116);
/* oklch */ color: oklch(36.9% 0.125 303.6);
Tailwind
colors: {
  custom: {
    50: '#83659c',
    500: '#4e2974',
    950: '#000000',
  },
}
SCSS
$custom: #4e2974;
$custom-light: #83659c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2974",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 269.6,
    "s": 47.771,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36903,
    "c": 0.12494,
    "h": 303.6
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#4E2974
secondary
#7DA653
accent
#D75095
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2974

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

Preview Lab → · Contrast checker → · Palette generator →

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