#4D2287#4D2287

#4D2287 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.157 H 297.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4D2287
RGBrgb(77, 34, 135)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 53%)
CMYKcmyk(43%, 74.8%, 0%, 47.1%)
CIE-LABlab(25.17, 41.70, -48.74)
CIE-LCHlch(25.17, 64.15, 310.55°)
OKLaboklab(37.36% 0.0729 -0.1394)
OKLCHoklch(37.36% 0.157 297.6)
XYZxyz(8.0046, 4.4710, 23.3582)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2287 #5C8722
analogous
#222987 #4D2287 #7F2287
triadic
#4D2287 #874D22 #22874D
tetradic
#4D2287 #872229 #5C8722 #22877F
square
#4D2287 #872229 #5C8722 #22877F
split-complementary
#4D2287 #877F22 #298722
monochromatic
#150925 #311656 #4D2287 #692EB8 #8850D3

Accessibility & contrast

On white

11.09
#4D2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4D2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2287
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2287#FFFFFF#000000##FFFFFF
##4D22871.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#3E3C52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d2287;
/* rgb */ color: rgb(77, 34, 135);
/* oklch */ color: oklch(37.4% 0.157 297.6);
Tailwind
colors: {
  custom: {
    50: '#8561ab',
    500: '#4d2287',
    950: '#000000',
  },
}
SCSS
$custom: #4d2287;
$custom-light: #8561ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2287",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 265.545,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.15728,
    "h": 297.6
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#4D2287
secondary
#8AB74E
accent
#E345A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4D2287

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

Preview Lab → · Contrast checker → · Palette generator →

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