#4D2088#4D2088

#4D2088 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.161 H 297.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4D2088
RGBrgb(77, 32, 136)
HSLhsl(266, 62%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(43.4%, 76.5%, 0%, 46.7%)
CIE-LABlab(24.92, 42.94, -49.78)
CIE-LCHlch(24.92, 65.75, 310.78°)
OKLaboklab(37.2% 0.0746 -0.1424)
OKLCHoklch(37.2% 0.161 297.6)
XYZxyz(8.0199, 4.3882, 23.7123)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2088 #5B8820
analogous
#202788 #4D2088 #812088
triadic
#4D2088 #884D20 #20884D
tetradic
#4D2088 #882027 #5B8820 #208881
square
#4D2088 #882027 #5B8820 #208881
split-complementary
#4D2088 #888120 #278820
monochromatic
#150925 #311456 #4D2088 #692CBA #884DD5

Accessibility & contrast

On white

11.18
#4D2088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D2088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2088
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2088#FFFFFF#000000##FFFFFF
##4D20881.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#3E3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2088;
/* rgb */ color: rgb(77, 32, 136);
/* oklch */ color: oklch(37.2% 0.161 297.6);
Tailwind
colors: {
  custom: {
    50: '#8560ac',
    500: '#4d2088',
    950: '#000000',
  },
}
SCSS
$custom: #4d2088;
$custom-light: #8560ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2088",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 265.962,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37203,
    "c": 0.16076,
    "h": 297.6
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#4D2088
secondary
#89B84C
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D2088

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

Preview Lab → · Contrast checker → · Palette generator →

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