#4D287F#4D287F

#4D287F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.140 H 299.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#4D287F
RGBrgb(77, 40, 127)
HSLhsl(266, 52%, 33%)
HSVhsv(266, 69%, 50%)
CMYKcmyk(39.4%, 68.5%, 0%, 50.2%)
CIE-LABlab(25.65, 36.36, -42.95)
CIE-LCHlch(25.65, 56.27, 310.25°)
OKLaboklab(37.49% 0.0678 -0.1224)
OKLCHoklch(37.49% 0.14 299)
XYZxyz(7.6492, 4.6276, 20.5648)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D287F #5A7F28
analogous
#282F7F #4D287F #78287F
triadic
#4D287F #7F4D28 #287F4D
tetradic
#4D287F #7F282F #5A7F28 #287F78
square
#4D287F #7F282F #5A7F28 #287F78
split-complementary
#4D287F #7F7828 #2F7F28
monochromatic
#150B22 #311950 #4D287F #6937AE #8857CA

Accessibility & contrast

On white

10.91
#4D287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D287F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D287F#FFFFFF#000000##FFFFFF
##4D287F1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#413C50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d287f;
/* rgb */ color: rgb(77, 40, 127);
/* oklch */ color: oklch(37.5% 0.140 299.0);
Tailwind
colors: {
  custom: {
    50: '#8364a5',
    500: '#4d287f',
    950: '#000000',
  },
}
SCSS
$custom: #4d287f;
$custom-light: #8364a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d287f",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 265.517,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37489,
    "c": 0.13991,
    "h": 299
  },
  "luminance": 0.04628
}

Semantic roles & 50–950 ramp

primary
#4D287F
secondary
#88AF54
accent
#DC4C9F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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