#4C2088#4C2088

#4C2088 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.161 H 297.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4C2088
RGBrgb(76, 32, 136)
HSLhsl(265, 62%, 33%)
HSVhsv(265, 76%, 53%)
CMYKcmyk(44.1%, 76.5%, 0%, 46.7%)
CIE-LABlab(24.79, 42.77, -50.00)
CIE-LCHlch(24.79, 65.80, 310.54°)
OKLaboklab(37.08% 0.073 -0.1431)
OKLCHoklch(37.08% 0.161 297)
XYZxyz(7.9398, 4.3469, 23.7085)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2088 #5C8820
analogous
#202888 #4C2088 #802088
triadic
#4C2088 #884C20 #20884C
tetradic
#4C2088 #882028 #5C8820 #208880
square
#4C2088 #882028 #5C8820 #208880
split-complementary
#4C2088 #888020 #288820
monochromatic
#150925 #301456 #4C2088 #682CBA #874DD5

Accessibility & contrast

On white

11.23
#4C2088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4C2088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2088
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2088#FFFFFF#000000##FFFFFF
##4C20881.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2088;
/* rgb */ color: rgb(76, 32, 136);
/* oklch */ color: oklch(37.1% 0.161 297.0);
Tailwind
colors: {
  custom: {
    50: '#8460ac',
    500: '#4c2088',
    950: '#000000',
  },
}
SCSS
$custom: #4c2088;
$custom-light: #8460ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2088",
  "rgb": {
    "r": 76,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 265.385,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37084,
    "c": 0.16064,
    "h": 297
  },
  "luminance": 0.04347
}

Semantic roles & 50–950 ramp

primary
#4C2088
secondary
#8AB84C
accent
#E543A0
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2088

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

Preview Lab → · Contrast checker → · Palette generator →

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