#4E236B#4E236B

#4E236B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.123 H 308.9°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4E236B
RGBrgb(78, 35, 107)
HSLhsl(276, 51%, 28%)
HSVhsv(276, 67%, 42%)
CMYKcmyk(27.1%, 67.3%, 0%, 58%)
CIE-LABlab(23.28, 34.06, -33.98)
CIE-LCHlch(23.28, 48.11, 315.06°)
OKLaboklab(35.34% 0.0774 -0.0959)
OKLCHoklch(35.34% 0.123 308.9)
XYZxyz(6.3962, 3.8834, 14.3197)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E236B #406B23
analogous
#2A236B #4E236B #6B2364
triadic
#4E236B #6B4E23 #236B4E
tetradic
#4E236B #6B2A23 #406B23 #23646B
square
#4E236B #6B2A23 #406B23 #23646B
split-complementary
#4E236B #646B23 #236B2A
monochromatic
#110817 #2C143D #4E236B #703299 #9046C2

Accessibility & contrast

On white

11.82
#4E236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E236B
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E236B#FFFFFF#000000##FFFFFF
##4E236B1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#183869
Tritanopia (blue-blind)
#4A3243
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e236b;
/* rgb */ color: rgb(78, 35, 107);
/* oklch */ color: oklch(35.3% 0.123 308.9);
Tailwind
colors: {
  custom: {
    50: '#826196',
    500: '#4e236b',
    950: '#000000',
  },
}
SCSS
$custom: #4e236b;
$custom-light: #826196;
$custom-dark: #000000;
JSON
{
  "hex": "#4e236b",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 275.833,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3534,
    "c": 0.1233,
    "h": 308.9
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#4E236B
secondary
#6D9E4B
accent
#DA4E86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E236B

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

Preview Lab → · Contrast checker → · Palette generator →

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