#4C188B#4C188B

#4C188B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.172 H 297.3°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4C188B
RGBrgb(76, 24, 139)
HSLhsl(267, 71%, 32%)
HSVhsv(267, 83%, 55%)
CMYKcmyk(45.3%, 82.7%, 0%, 45.5%)
CIE-LABlab(23.85, 47.05, -53.41)
CIE-LCHlch(23.85, 71.18, 311.38°)
OKLaboklab(36.51% 0.0789 -0.153)
OKLCHoklch(36.51% 0.172 297.3)
XYZxyz(7.9661, 4.0537, 24.7838)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C188B #578B18
analogous
#181E8B #4C188B #85188B
triadic
#4C188B #8B4C18 #188B4C
tetradic
#4C188B #8B181E #578B18 #188B85
square
#4C188B #8B181E #578B18 #188B85
split-complementary
#4C188B #8B8518 #1E8B18
monochromatic
#130623 #2F0F57 #4C188B #6921BF #873FDE

Accessibility & contrast

On white

11.60
#4C188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C188B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C188B#FFFFFF#000000##FFFFFF
##4C188B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#3B3952
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c188b;
/* rgb */ color: rgb(76, 24, 139);
/* oklch */ color: oklch(36.5% 0.172 297.3);
Tailwind
colors: {
  custom: {
    50: '#855cae',
    500: '#4c188b',
    950: '#000000',
  },
}
SCSS
$custom: #4c188b;
$custom-light: #855cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c188b",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 267.13,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36513,
    "c": 0.17215,
    "h": 297.3
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#4C188B
secondary
#85BE40
accent
#ED3A9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C188B

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

Preview Lab → · Contrast checker → · Palette generator →

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