#4D2381#4D2381

#4D2381 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.149 H 299.4°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4D2381
RGBrgb(77, 35, 129)
HSLhsl(267, 57%, 32%)
HSVhsv(267, 73%, 51%)
CMYKcmyk(40.3%, 72.9%, 0%, 49.4%)
CIE-LABlab(24.84, 39.58, -45.51)
CIE-LCHlch(24.84, 60.32, 311.01°)
OKLaboklab(36.96% 0.0731 -0.1299)
OKLCHoklch(36.96% 0.149 299.4)
XYZxyz(7.6231, 4.3647, 21.2055)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2381 #578123
analogous
#232881 #4D2381 #7C2381
triadic
#4D2381 #814D23 #23814D
tetradic
#4D2381 #812328 #578123 #23817C
square
#4D2381 #812328 #578123 #23817C
split-complementary
#4D2381 #817C23 #288123
monochromatic
#140921 #301651 #4D2381 #6A30B1 #884FCF

Accessibility & contrast

On white

11.21
#4D2381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2381
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2381#FFFFFF#000000##FFFFFF
##4D23811.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#413A4F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2381;
/* rgb */ color: rgb(77, 35, 129);
/* oklch */ color: oklch(37.0% 0.149 299.4);
Tailwind
colors: {
  custom: {
    50: '#8462a6',
    500: '#4d2381',
    950: '#000000',
  },
}
SCSS
$custom: #4d2381;
$custom-light: #8462a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2381",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 266.809,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36965,
    "c": 0.14905,
    "h": 299.4
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#4D2381
secondary
#85B34D
accent
#E1479C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D2381

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

Preview Lab → · Contrast checker → · Palette generator →

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