#4D287C#4D287C

#4D287C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.2% C 0.136 H 300.0°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4D287C
RGBrgb(77, 40, 124)
HSLhsl(266, 51%, 32%)
HSVhsv(266, 68%, 49%)
CMYKcmyk(37.9%, 67.7%, 0%, 51.4%)
CIE-LABlab(25.41, 35.54, -41.43)
CIE-LCHlch(25.41, 54.58, 310.62°)
OKLaboklab(37.25% 0.0682 -0.1179)
OKLCHoklch(37.25% 0.136 300)
XYZxyz(7.4566, 4.5505, 19.5504)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D287C #577C28
analogous
#282D7C #4D287C #77287C
triadic
#4D287C #7C4D28 #287C4D
tetradic
#4D287C #7C282D #577C28 #287C77
square
#4D287C #7C282D #577C28 #287C77
split-complementary
#4D287C #7C7728 #2D7C28
monochromatic
#140A1F #30194E #4D287C #6A37AA #8856C8

Accessibility & contrast

On white

10.99
#4D287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4D287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D287C
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D287C#FFFFFF#000000##FFFFFF
##4D287C1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#433B4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d287c;
/* rgb */ color: rgb(77, 40, 124);
/* oklch */ color: oklch(37.2% 0.136 300.0);
Tailwind
colors: {
  custom: {
    50: '#8364a2',
    500: '#4d287c',
    950: '#000000',
  },
}
SCSS
$custom: #4d287c;
$custom-light: #8364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d287c",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 266.429,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37248,
    "c": 0.1362,
    "h": 300
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#4D287C
secondary
#85AD52
accent
#DB4D9C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4D287C

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

Preview Lab → · Contrast checker → · Palette generator →

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