#4D288F#4D288F

#4D288F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.159 H 294.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4D288F
RGBrgb(77, 40, 143)
HSLhsl(262, 56%, 36%)
HSVhsv(262, 72%, 56%)
CMYKcmyk(46.2%, 72%, 0%, 43.9%)
CIE-LABlab(26.96, 40.83, -50.81)
CIE-LCHlch(26.96, 65.18, 308.79°)
OKLaboklab(38.84% 0.0652 -0.1455)
OKLCHoklch(38.84% 0.159 294.2)
XYZxyz(8.7759, 5.0783, 26.4991)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D288F #6A8F28
analogous
#28378F #4D288F #80288F
triadic
#4D288F #8F4D28 #288F4D
tetradic
#4D288F #8F2837 #6A8F28 #288F80
square
#4D288F #8F2837 #6A8F28 #288F80
split-complementary
#4D288F #8F8028 #378F28
monochromatic
#190D2F #331B5F #4D288F #6735BF #885FD2

Accessibility & contrast

On white

10.42
#4D288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4D288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D288F
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D288F#FFFFFF#000000##FFFFFF
##4D288F1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#3A4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d288f;
/* rgb */ color: rgb(77, 40, 143);
/* oklch */ color: oklch(38.8% 0.159 294.2);
Tailwind
colors: {
  custom: {
    50: '#8565b1',
    500: '#4d288f',
    950: '#000000',
  },
}
SCSS
$custom: #4d288f;
$custom-light: #8565b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d288f",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 261.553,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.15941,
    "h": 294.2
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#4D288F
secondary
#96B85B
accent
#E048A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4D288F

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

Preview Lab → · Contrast checker → · Palette generator →

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