#4C188F#4C188F

#4C188F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.176 H 296.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4C188F
RGBrgb(76, 24, 143)
HSLhsl(266, 71%, 33%)
HSVhsv(266, 83%, 56%)
CMYKcmyk(46.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(24.23, 48.08, -55.27)
CIE-LCHlch(24.23, 73.25, 311.02°)
OKLaboklab(36.9% 0.0775 -0.1585)
OKLCHoklch(36.9% 0.176 296.1)
XYZxyz(8.2637, 4.1727, 26.3513)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C188F #5B8F18
analogous
#18208F #4C188F #87188F
triadic
#4C188F #8F4C18 #188F4C
tetradic
#4C188F #8F1820 #5B8F18 #188F87
square
#4C188F #8F1820 #5B8F18 #188F87
split-complementary
#4C188F #8F8718 #208F18
monochromatic
#140626 #300F5B #4C188F #6821C3 #8742DF

Accessibility & contrast

On white

11.45
#4C188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C188F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C188F#FFFFFF#000000##FFFFFF
##4C188F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#393B55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c188f;
/* rgb */ color: rgb(76, 24, 143);
/* oklch */ color: oklch(36.9% 0.176 296.1);
Tailwind
colors: {
  custom: {
    50: '#865db1',
    500: '#4c188f',
    950: '#000000',
  },
}
SCSS
$custom: #4c188f;
$custom-light: #865db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c188f",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 266.218,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.17638,
    "h": 296.1
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#4C188F
secondary
#89C043
accent
#EE3A9F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C188F

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

Preview Lab → · Contrast checker → · Palette generator →

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