#4E1F6C#4E1F6C

#4E1F6C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.130 H 309.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4E1F6C
RGBrgb(78, 31, 108)
HSLhsl(277, 55%, 27%)
HSVhsv(277, 71%, 42%)
CMYKcmyk(27.8%, 71.3%, 0%, 57.6%)
CIE-LABlab(22.59, 36.41, -35.74)
CIE-LCHlch(22.59, 51.02, 315.53°)
OKLaboklab(34.87% 0.0824 -0.1011)
OKLCHoklch(34.87% 0.13 309.2)
XYZxyz(6.3381, 3.6825, 14.5614)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F6C #3D6C1F
analogous
#271F6C #4E1F6C #6C1F64
triadic
#4E1F6C #6C4E1F #1F6C4E
tetradic
#4E1F6C #6C271F #3D6C1F #1F646C
square
#4E1F6C #6C271F #3D6C1F #1F646C
split-complementary
#4E1F6C #646C1F #1F6C27
monochromatic
#110718 #2C113C #4E1F6C #702D9C #923EC8

Accessibility & contrast

On white

12.09
#4E1F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F6C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F6C#FFFFFF#000000##FFFFFF
##4E1F6C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#11376A
Tritanopia (blue-blind)
#4A2F43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1f6c;
/* rgb */ color: rgb(78, 31, 108);
/* oklch */ color: oklch(34.9% 0.130 309.2);
Tailwind
colors: {
  custom: {
    50: '#835f97',
    500: '#4e1f6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f6c;
$custom-light: #835f97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f6c",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 276.623,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.13042,
    "h": 309.2
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#4E1F6C
secondary
#6AA047
accent
#DF4983
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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