#4D287D#4D287D

#4D287D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.137 H 299.7°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4D287D
RGBrgb(77, 40, 125)
HSLhsl(266, 52%, 32%)
HSVhsv(266, 68%, 49%)
CMYKcmyk(38.4%, 68%, 0%, 51%)
CIE-LABlab(25.49, 35.81, -41.94)
CIE-LCHlch(25.49, 55.14, 310.50°)
OKLaboklab(37.33% 0.0681 -0.1194)
OKLCHoklch(37.33% 0.137 299.7)
XYZxyz(7.5201, 4.5760, 19.8851)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D287D #587D28
analogous
#282D7D #4D287D #78287D
triadic
#4D287D #7D4D28 #287D4D
tetradic
#4D287D #7D282D #587D28 #287D78
square
#4D287D #7D282D #587D28 #287D78
split-complementary
#4D287D #7D7828 #2D7D28
monochromatic
#140A20 #30194F #4D287D #6A37AB #8856C9

Accessibility & contrast

On white

10.96
#4D287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D287D
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D287D#FFFFFF#000000##FFFFFF
##4D287D1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#423B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d287d;
/* rgb */ color: rgb(77, 40, 125);
/* oklch */ color: oklch(37.3% 0.137 299.7);
Tailwind
colors: {
  custom: {
    50: '#8364a3',
    500: '#4d287d',
    950: '#000000',
  },
}
SCSS
$custom: #4d287d;
$custom-light: #8364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d287d",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 266.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37328,
    "c": 0.13744,
    "h": 299.7
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#4D287D
secondary
#86AE53
accent
#DB4D9D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D287D

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

Preview Lab → · Contrast checker → · Palette generator →

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