#4C2288#4C2288

#4C2288 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.158 H 296.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#4C2288
RGBrgb(76, 34, 136)
HSLhsl(265, 60%, 33%)
HSVhsv(265, 75%, 53%)
CMYKcmyk(44.1%, 75%, 0%, 46.7%)
CIE-LABlab(25.13, 41.79, -49.44)
CIE-LCHlch(25.13, 64.73, 310.21°)
OKLaboklab(37.33% 0.0711 -0.1414)
OKLCHoklch(37.33% 0.158 296.7)
XYZxyz(7.9953, 4.4580, 23.7270)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2288 #5E8822
analogous
#222B88 #4C2288 #7F2288
triadic
#4C2288 #884C22 #22884C
tetradic
#4C2288 #88222B #5E8822 #22887F
square
#4C2288 #88222B #5E8822 #22887F
split-complementary
#4C2288 #887F22 #2B8822
monochromatic
#150A26 #311657 #4C2288 #672EB9 #8751D3

Accessibility & contrast

On white

11.10
#4C2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C2288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2288
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2288#FFFFFF#000000##FFFFFF
##4C22881.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#3C3C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c2288;
/* rgb */ color: rgb(76, 34, 136);
/* oklch */ color: oklch(37.3% 0.158 296.7);
Tailwind
colors: {
  custom: {
    50: '#8461ac',
    500: '#4c2288',
    950: '#000000',
  },
}
SCSS
$custom: #4c2288;
$custom-light: #8461ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2288",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 264.706,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37326,
    "c": 0.15833,
    "h": 296.7
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#4C2288
secondary
#8CB74F
accent
#E345A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4C2288

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

Preview Lab → · Contrast checker → · Palette generator →

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