#4C188E#4C188E

#4C188E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.175 H 296.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4C188E
RGBrgb(76, 24, 142)
HSLhsl(266, 71%, 33%)
HSVhsv(266, 83%, 56%)
CMYKcmyk(46.5%, 83.1%, 0%, 44.3%)
CIE-LABlab(24.14, 47.82, -54.80)
CIE-LCHlch(24.14, 72.74, 311.11°)
OKLaboklab(36.8% 0.0778 -0.1571)
OKLCHoklch(36.8% 0.175 296.4)
XYZxyz(8.1883, 4.1426, 25.9541)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C188E #5A8E18
analogous
#181F8E #4C188E #87188E
triadic
#4C188E #8E4C18 #188E4C
tetradic
#4C188E #8E181F #5A8E18 #188E87
square
#4C188E #8E181F #5A8E18 #188E87
split-complementary
#4C188E #8E8718 #1F8E18
monochromatic
#140625 #300F5A #4C188E #6821C2 #8741DF

Accessibility & contrast

On white

11.48
#4C188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C188E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C188E#FFFFFF#000000##FFFFFF
##4C188E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c188e;
/* rgb */ color: rgb(76, 24, 142);
/* oklch */ color: oklch(36.8% 0.175 296.4);
Tailwind
colors: {
  custom: {
    50: '#865db0',
    500: '#4c188e',
    950: '#000000',
  },
}
SCSS
$custom: #4c188e;
$custom-light: #865db0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c188e",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 266.441,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36801,
    "c": 0.17533,
    "h": 296.4
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#4C188E
secondary
#88C042
accent
#EE3A9F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C188E

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

Preview Lab → · Contrast checker → · Palette generator →

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