#4E235E#4E235E

#4E235E is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.4% C 0.108 H 315.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4E235E
RGBrgb(78, 35, 94)
HSLhsl(284, 46%, 25%)
HSVhsv(284, 63%, 37%)
CMYKcmyk(17%, 62.8%, 0%, 63.1%)
CIE-LABlab(22.41, 30.87, -26.88)
CIE-LCHlch(22.41, 40.94, 318.95°)
OKLaboklab(34.42% 0.0775 -0.0752)
OKLCHoklch(34.42% 0.108 315.9)
XYZxyz(5.7630, 3.6301, 10.9846)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E235E #335E23
analogous
#31235E #4E235E #5E2350
triadic
#4E235E #5E4E23 #235E4E
tetradic
#4E235E #5E3123 #335E23 #23505E
square
#4E235E #5E3123 #335E23 #23505E
split-complementary
#4E235E #505E23 #235E31
monochromatic
#130816 #291231 #4E235E #73348B #9844B7

Accessibility & contrast

On white

12.17
#4E235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E235E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E235E#FFFFFF#000000##FFFFFF
##4E235E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133360
Deuteranopia (green-blind)
#23375D
Tritanopia (blue-blind)
#4D2D3D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e235e;
/* rgb */ color: rgb(78, 35, 94);
/* oklch */ color: oklch(34.4% 0.108 315.9);
Tailwind
colors: {
  custom: {
    50: '#81608c',
    500: '#4e235e',
    950: '#000000',
  },
}
SCSS
$custom: #4e235e;
$custom-light: #81608c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e235e",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 283.729,
    "s": 45.736,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34425,
    "c": 0.10801,
    "h": 315.9
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#4E235E
secondary
#5E924B
accent
#D55276
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4E235E

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

Preview Lab → · Contrast checker → · Palette generator →

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