#4D288C#4D288C

#4D288C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.156 H 295.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#4D288C
RGBrgb(77, 40, 140)
HSLhsl(262, 56%, 35%)
HSVhsv(262, 71%, 55%)
CMYKcmyk(45%, 71.4%, 0%, 45.1%)
CIE-LABlab(26.70, 39.99, -49.36)
CIE-LCHlch(26.70, 63.53, 309.01°)
OKLaboklab(38.58% 0.0658 -0.1412)
OKLCHoklch(38.58% 0.156 295)
XYZxyz(8.5517, 4.9886, 25.3182)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D288C #678C28
analogous
#28358C #4D288C #7F288C
triadic
#4D288C #8C4D28 #288C4D
tetradic
#4D288C #8C2835 #678C28 #288C7F
square
#4D288C #8C2835 #678C28 #288C7F
split-complementary
#4D288C #8C7F28 #358C28
monochromatic
#190D2D #331A5C #4D288C #6736BC #885ED1

Accessibility & contrast

On white

10.51
#4D288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4D288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D288C
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D288C#FFFFFF#000000##FFFFFF
##4D288C1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#3C4157
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d288c;
/* rgb */ color: rgb(77, 40, 140);
/* oklch */ color: oklch(38.6% 0.156 295.0);
Tailwind
colors: {
  custom: {
    50: '#8565ae',
    500: '#4d288c',
    950: '#000000',
  },
}
SCSS
$custom: #4d288c;
$custom-light: #8565ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d288c",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 262.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.1558,
    "h": 295
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#4D288C
secondary
#94B65A
accent
#DF49A7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4D288C

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

Preview Lab → · Contrast checker → · Palette generator →

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