#4D237F#4D237F

#4D237F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.147 H 300.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4D237F
RGBrgb(77, 35, 127)
HSLhsl(267, 57%, 32%)
HSVhsv(267, 72%, 50%)
CMYKcmyk(39.4%, 72.4%, 0%, 50.2%)
CIE-LABlab(24.68, 39.04, -44.52)
CIE-LCHlch(24.68, 59.21, 311.25°)
OKLaboklab(36.8% 0.0735 -0.127)
OKLCHoklch(36.8% 0.147 300.1)
XYZxyz(7.4914, 4.3121, 20.5122)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D237F #557F23
analogous
#23277F #4D237F #7B237F
triadic
#4D237F #7F4D23 #237F4D
tetradic
#4D237F #7F2327 #557F23 #237F7B
square
#4D237F #7F2327 #557F23 #237F7B
split-complementary
#4D237F #7F7B23 #277F23
monochromatic
#13091F #30164F #4D237F #6A30AF #894ECE

Accessibility & contrast

On white

11.28
#4D237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D237F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D237F#FFFFFF#000000##FFFFFF
##4D237F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d237f;
/* rgb */ color: rgb(77, 35, 127);
/* oklch */ color: oklch(36.8% 0.147 300.1);
Tailwind
colors: {
  custom: {
    50: '#8462a5',
    500: '#4d237f',
    950: '#000000',
  },
}
SCSS
$custom: #4d237f;
$custom-light: #8462a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d237f",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 267.391,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36796,
    "c": 0.1467,
    "h": 300.1
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#4D237F
secondary
#83B14C
accent
#E0489B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D237F

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

Preview Lab → · Contrast checker → · Palette generator →

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