#4E1B6C#4E1B6C

#4E1B6C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.136 H 309.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4E1B6C
RGBrgb(78, 27, 108)
HSLhsl(278, 60%, 26%)
HSVhsv(278, 75%, 42%)
CMYKcmyk(27.8%, 75%, 0%, 57.6%)
CIE-LABlab(21.90, 38.37, -36.86)
CIE-LCHlch(21.90, 53.21, 316.14°)
OKLaboklab(34.37% 0.0871 -0.1044)
OKLCHoklch(34.37% 0.136 309.8)
XYZxyz(6.2401, 3.4864, 14.5287)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B6C #396C1B
analogous
#261B6C #4E1B6C #6C1B62
triadic
#4E1B6C #6C4E1B #1B6C4E
tetradic
#4E1B6C #6C261B #396C1B #1B626C
square
#4E1B6C #6C261B #396C1B #1B626C
split-complementary
#4E1B6C #626C1B #1B6C26
monochromatic
#120618 #2B0F3B #4E1B6C #71279D #9435CC

Accessibility & contrast

On white

12.37
#4E1B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B6C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B6C#FFFFFF#000000##FFFFFF
##4E1B6C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#0B356A
Tritanopia (blue-blind)
#4A2D41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1b6c;
/* rgb */ color: rgb(78, 27, 108);
/* oklch */ color: oklch(34.4% 0.136 309.8);
Tailwind
colors: {
  custom: {
    50: '#835c97',
    500: '#4e1b6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b6c;
$custom-light: #835c97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b6c",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 277.778,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34369,
    "c": 0.13593,
    "h": 309.8
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#4E1B6C
secondary
#65A142
accent
#E3457F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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