#4D237A#4D237A

#4D237A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.141 H 301.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4D237A
RGBrgb(77, 35, 122)
HSLhsl(269, 55%, 31%)
HSVhsv(269, 71%, 48%)
CMYKcmyk(36.9%, 71.3%, 0%, 52.2%)
CIE-LABlab(24.27, 37.71, -42.01)
CIE-LCHlch(24.27, 56.45, 311.91°)
OKLaboklab(36.38% 0.0743 -0.1196)
OKLCHoklch(36.38% 0.141 301.9)
XYZxyz(7.1736, 4.1850, 18.8384)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D237A #507A23
analogous
#23247A #4D237A #78237A
triadic
#4D237A #7A4D23 #237A4D
tetradic
#4D237A #7A2324 #507A23 #237A78
square
#4D237A #7A2324 #507A23 #237A78
split-complementary
#4D237A #7A7823 #247A23
monochromatic
#11081B #2F154A #4D237A #6B31AA #894CCC

Accessibility & contrast

On white

11.43
#4D237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D237A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D237A#FFFFFF#000000##FFFFFF
##4D237A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#44374B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d237a;
/* rgb */ color: rgb(77, 35, 122);
/* oklch */ color: oklch(36.4% 0.141 301.9);
Tailwind
colors: {
  custom: {
    50: '#8361a1',
    500: '#4d237a',
    950: '#000000',
  },
}
SCSS
$custom: #4d237a;
$custom-light: #8361a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d237a",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 268.966,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36381,
    "c": 0.1408,
    "h": 301.9
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#4D237A
secondary
#7EAD4C
accent
#DF4996
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D237A

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

Preview Lab → · Contrast checker → · Palette generator →

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