#4C188C#4C188C

#4C188C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.173 H 297.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4C188C
RGBrgb(76, 24, 140)
HSLhsl(267, 71%, 32%)
HSVhsv(267, 83%, 55%)
CMYKcmyk(45.7%, 82.9%, 0%, 45.1%)
CIE-LABlab(23.94, 47.31, -53.88)
CIE-LCHlch(23.94, 71.70, 311.29°)
OKLaboklab(36.61% 0.0785 -0.1544)
OKLCHoklch(36.61% 0.173 297)
XYZxyz(8.0395, 4.0830, 25.1704)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C188C #588C18
analogous
#181E8C #4C188C #86188C
triadic
#4C188C #8C4C18 #188C4C
tetradic
#4C188C #8C181E #588C18 #188C86
square
#4C188C #8C181E #588C18 #188C86
split-complementary
#4C188C #8C8618 #1E8C18
monochromatic
#130624 #300F58 #4C188C #6821C0 #8740DE

Accessibility & contrast

On white

11.56
#4C188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C188C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C188C#FFFFFF#000000##FFFFFF
##4C188C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#3B3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c188c;
/* rgb */ color: rgb(76, 24, 140);
/* oklch */ color: oklch(36.6% 0.173 297.0);
Tailwind
colors: {
  custom: {
    50: '#855daf',
    500: '#4c188c',
    950: '#000000',
  },
}
SCSS
$custom: #4c188c;
$custom-light: #855daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c188c",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 266.897,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36609,
    "c": 0.17321,
    "h": 297
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#4C188C
secondary
#86BF41
accent
#ED3A9D
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4C188C

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

Preview Lab → · Contrast checker → · Palette generator →

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