#4E235F#4E235F

#4E235F is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.5% C 0.109 H 315.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4E235F
RGBrgb(78, 35, 95)
HSLhsl(283, 46%, 25%)
HSVhsv(283, 63%, 37%)
CMYKcmyk(17.9%, 63.2%, 0%, 62.7%)
CIE-LABlab(22.47, 31.11, -27.44)
CIE-LCHlch(22.47, 41.48, 318.59°)
OKLaboklab(34.49% 0.0776 -0.0768)
OKLCHoklch(34.49% 0.109 315.3)
XYZxyz(5.8081, 3.6482, 11.2225)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E235F #345F23
analogous
#30235F #4E235F #5F2352
triadic
#4E235F #5F4E23 #235F4E
tetradic
#4E235F #5F3023 #345F23 #23525F
square
#4E235F #5F3023 #345F23 #23525F
split-complementary
#4E235F #525F23 #235F30
monochromatic
#120816 #291332 #4E235F #73338C #9744B8

Accessibility & contrast

On white

12.14
#4E235F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E235F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E235F#FFFFFF#000000##FFFFFF
##4E235F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123361
Deuteranopia (green-blind)
#22375E
Tritanopia (blue-blind)
#4D2D3D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e235f;
/* rgb */ color: rgb(78, 35, 95);
/* oklch */ color: oklch(34.5% 0.109 315.3);
Tailwind
colors: {
  custom: {
    50: '#82608d',
    500: '#4e235f',
    950: '#000000',
  },
}
SCSS
$custom: #4e235f;
$custom-light: #82608d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e235f",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 95
  },
  "hsl": {
    "h": 283,
    "s": 46.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34492,
    "c": 0.10918,
    "h": 315.3
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#4E235F
secondary
#5F934B
accent
#D65277
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E235F

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

Preview Lab → · Contrast checker → · Palette generator →

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