#4D287A#4D287A

#4D287A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.134 H 300.8°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4D287A
RGBrgb(77, 40, 122)
HSLhsl(267, 51%, 32%)
HSVhsv(267, 67%, 48%)
CMYKcmyk(36.9%, 67.2%, 0%, 52.2%)
CIE-LABlab(25.26, 34.99, -40.41)
CIE-LCHlch(25.26, 53.45, 310.89°)
OKLaboklab(37.09% 0.0684 -0.1149)
OKLCHoklch(37.09% 0.134 300.8)
XYZxyz(7.3314, 4.5005, 18.8910)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D287A #557A28
analogous
#282C7A #4D287A #76287A
triadic
#4D287A #7A4D28 #287A4D
tetradic
#4D287A #7A282C #557A28 #287A76
square
#4D287A #7A282C #557A28 #287A76
split-complementary
#4D287A #7A7628 #2C7A28
monochromatic
#130A1E #30194C #4D287A #6A37A8 #8955C7

Accessibility & contrast

On white

11.05
#4D287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D287A
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D287A#FFFFFF#000000##FFFFFF
##4D287A1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#043B78
Tritanopia (blue-blind)
#433A4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d287a;
/* rgb */ color: rgb(77, 40, 122);
/* oklch */ color: oklch(37.1% 0.134 300.8);
Tailwind
colors: {
  custom: {
    50: '#8364a1',
    500: '#4d287a',
    950: '#000000',
  },
}
SCSS
$custom: #4d287a;
$custom-light: #8364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d287a",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 267.073,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3709,
    "c": 0.13372,
    "h": 300.8
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#4D287A
secondary
#83AC52
accent
#DA4E9B
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4D287A

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

Preview Lab → · Contrast checker → · Palette generator →

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