#4E235A#4E235A

#4E235A is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.103 H 318.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4E235A
RGBrgb(78, 35, 90)
HSLhsl(287, 44%, 25%)
HSVhsv(287, 61%, 35%)
CMYKcmyk(13.3%, 61.1%, 0%, 64.7%)
CIE-LABlab(22.16, 29.94, -24.63)
CIE-LCHlch(22.16, 38.77, 320.55°)
OKLaboklab(34.16% 0.0773 -0.0686)
OKLCHoklch(34.16% 0.103 318.4)
XYZxyz(5.5881, 3.5602, 10.0637)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E235A #2F5A23
analogous
#33235A #4E235A #5A234B
triadic
#4E235A #5A4E23 #235A4E
tetradic
#4E235A #5A3323 #2F5A23 #234B5A
square
#4E235A #5A3323 #2F5A23 #234B5A
split-complementary
#4E235A #4B5A23 #235A33
monochromatic
#130916 #28122E #4E235A #743486 #9A45B2

Accessibility & contrast

On white

12.27
#4E235A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E235A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E235A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E235A#FFFFFF#000000##FFFFFF
##4E235A1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17325C
Deuteranopia (green-blind)
#263659
Tritanopia (blue-blind)
#4E2C3B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e235a;
/* rgb */ color: rgb(78, 35, 90);
/* oklch */ color: oklch(34.2% 0.103 318.4);
Tailwind
colors: {
  custom: {
    50: '#816089',
    500: '#4e235a',
    950: '#000000',
  },
}
SCSS
$custom: #4e235a;
$custom-light: #816089;
$custom-dark: #000000;
JSON
{
  "hex": "#4e235a",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 90
  },
  "hsl": {
    "h": 286.909,
    "s": 44,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34164,
    "c": 0.10338,
    "h": 318.4
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#4E235A
secondary
#5A8E4B
accent
#D45470
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E235A

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

Preview Lab → · Contrast checker → · Palette generator →

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