#4E238F#4E238F

#4E238F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.165 H 295.6°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4E238F
RGBrgb(78, 35, 143)
HSLhsl(264, 61%, 35%)
HSVhsv(264, 76%, 56%)
CMYKcmyk(45.5%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.17, 43.56, -52.08)
CIE-LCHlch(26.17, 67.90, 309.91°)
OKLaboklab(38.31% 0.0716 -0.1491)
OKLCHoklch(38.31% 0.165 295.6)
XYZxyz(8.6995, 4.8047, 26.4503)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E238F #648F23
analogous
#232E8F #4E238F #84238F
triadic
#4E238F #8F4E23 #238F4E
tetradic
#4E238F #8F232E #648F23 #238F84
square
#4E238F #8F232E #648F23 #238F84
split-complementary
#4E238F #8F8423 #2E8F23
monochromatic
#180B2D #33175E #4E238F #692FC0 #8957D6

Accessibility & contrast

On white

10.71
#4E238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E238F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E238F#FFFFFF#000000##FFFFFF
##4E238F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3C3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e238f;
/* rgb */ color: rgb(78, 35, 143);
/* oklch */ color: oklch(38.3% 0.165 295.6);
Tailwind
colors: {
  custom: {
    50: '#8662b1',
    500: '#4e238f',
    950: '#000000',
  },
}
SCSS
$custom: #4e238f;
$custom-light: #8662b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e238f",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 263.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.16544,
    "h": 295.6
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#4E238F
secondary
#91BA54
accent
#E444A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E238F

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

Preview Lab → · Contrast checker → · Palette generator →

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