#4E236D#4E236D

#4E236D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.126 H 308.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4E236D
RGBrgb(78, 35, 109)
HSLhsl(275, 51%, 28%)
HSVhsv(275, 68%, 43%)
CMYKcmyk(28.4%, 67.9%, 0%, 57.3%)
CIE-LABlab(23.43, 34.56, -35.04)
CIE-LCHlch(23.43, 49.22, 314.60°)
OKLaboklab(35.49% 0.0773 -0.0991)
OKLCHoklch(35.49% 0.126 308)
XYZxyz(6.5027, 3.9260, 14.8803)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E236D #426D23
analogous
#29236D #4E236D #6D2367
triadic
#4E236D #6D4E23 #236D4E
tetradic
#4E236D #6D2923 #426D23 #23676D
square
#4E236D #6D2923 #426D23 #23676D
split-complementary
#4E236D #676D23 #236D29
monochromatic
#110717 #2D143F #4E236D #6F329B #8F47C4

Accessibility & contrast

On white

11.76
#4E236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E236D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E236D#FFFFFF#000000##FFFFFF
##4E236D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#15386B
Tritanopia (blue-blind)
#493244
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e236d;
/* rgb */ color: rgb(78, 35, 109);
/* oklch */ color: oklch(35.5% 0.126 308.0);
Tailwind
colors: {
  custom: {
    50: '#826197',
    500: '#4e236d',
    950: '#000000',
  },
}
SCSS
$custom: #4e236d;
$custom-light: #826197;
$custom-dark: #000000;
JSON
{
  "hex": "#4e236d",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 274.865,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35489,
    "c": 0.12567,
    "h": 308
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#4E236D
secondary
#6FA04B
accent
#DB4D88
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E236D

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

Preview Lab → · Contrast checker → · Palette generator →

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