#4C188D#4C188D

#4C188D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.174 H 296.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4C188D
RGBrgb(76, 24, 141)
HSLhsl(267, 71%, 32%)
HSVhsv(267, 83%, 55%)
CMYKcmyk(46.1%, 83%, 0%, 44.7%)
CIE-LABlab(24.04, 47.57, -54.34)
CIE-LCHlch(24.04, 72.22, 311.20°)
OKLaboklab(36.71% 0.0782 -0.1557)
OKLCHoklch(36.71% 0.174 296.7)
XYZxyz(8.1136, 4.1127, 25.5605)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C188D #598D18
analogous
#181E8D #4C188D #87188D
triadic
#4C188D #8D4C18 #188D4C
tetradic
#4C188D #8D181E #598D18 #188D87
square
#4C188D #8D181E #598D18 #188D87
split-complementary
#4C188D #8D8718 #1E8D18
monochromatic
#140624 #300F59 #4C188D #6821C1 #8741DF

Accessibility & contrast

On white

11.52
#4C188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C188D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C188D#FFFFFF#000000##FFFFFF
##4C188D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3A3A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c188d;
/* rgb */ color: rgb(76, 24, 141);
/* oklch */ color: oklch(36.7% 0.174 296.7);
Tailwind
colors: {
  custom: {
    50: '#855daf',
    500: '#4c188d',
    950: '#000000',
  },
}
SCSS
$custom: #4c188d;
$custom-light: #855daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c188d",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 266.667,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36705,
    "c": 0.17427,
    "h": 296.7
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#4C188D
secondary
#87BF42
accent
#EE3A9E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C188D

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

Preview Lab → · Contrast checker → · Palette generator →

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