#4E237F#4E237F

#4E237F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.147 H 300.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4E237F
RGBrgb(78, 35, 127)
HSLhsl(268, 57%, 32%)
HSVhsv(268, 72%, 50%)
CMYKcmyk(38.6%, 72.4%, 0%, 50.2%)
CIE-LABlab(24.81, 39.25, -44.30)
CIE-LCHlch(24.81, 59.19, 311.54°)
OKLaboklab(36.92% 0.075 -0.1263)
OKLCHoklch(36.92% 0.147 300.7)
XYZxyz(7.5727, 4.3540, 20.5160)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E237F #547F23
analogous
#23267F #4E237F #7C237F
triadic
#4E237F #7F4E23 #237F4E
tetradic
#4E237F #7F2326 #547F23 #237F7C
square
#4E237F #7F2326 #547F23 #237F7C
split-complementary
#4E237F #7F7C23 #267F23
monochromatic
#13091F #31164F #4E237F #6B30AF #8A4ECE

Accessibility & contrast

On white

11.23
#4E237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E237F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E237F#FFFFFF#000000##FFFFFF
##4E237F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#43394E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e237f;
/* rgb */ color: rgb(78, 35, 127);
/* oklch */ color: oklch(36.9% 0.147 300.7);
Tailwind
colors: {
  custom: {
    50: '#8462a5',
    500: '#4e237f',
    950: '#000000',
  },
}
SCSS
$custom: #4e237f;
$custom-light: #8462a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e237f",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 268.043,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36918,
    "c": 0.14688,
    "h": 300.7
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#4E237F
secondary
#82B14C
accent
#E04899
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E237F

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

Preview Lab → · Contrast checker → · Palette generator →

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