#4B188D#4B188D

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

Color values

HEX#4B188D
RGBrgb(75, 24, 141)
HSLhsl(266, 71%, 32%)
HSVhsv(266, 83%, 55%)
CMYKcmyk(46.8%, 83%, 0%, 44.7%)
CIE-LABlab(23.91, 47.42, -54.56)
CIE-LCHlch(23.91, 72.29, 310.99°)
OKLaboklab(36.58% 0.0766 -0.1564)
OKLCHoklch(36.58% 0.174 296.1)
XYZxyz(8.0347, 4.0720, 25.5568)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B188D #5A8D18
analogous
#181F8D #4B188D #86188D
triadic
#4B188D #8D4B18 #188D4B
tetradic
#4B188D #8D181F #5A8D18 #188D86
square
#4B188D #8D181F #5A8D18 #188D86
split-complementary
#4B188D #8D8618 #1F8D18
monochromatic
#130624 #2F0F59 #4B188D #6721C1 #8641DF

Accessibility & contrast

On white

11.57
#4B188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B188D
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B188D#FFFFFF#000000##FFFFFF
##4B188D1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#383A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b188d;
/* rgb */ color: rgb(75, 24, 141);
/* oklch */ color: oklch(36.6% 0.174 296.1);
Tailwind
colors: {
  custom: {
    50: '#855caf',
    500: '#4b188d',
    950: '#000000',
  },
}
SCSS
$custom: #4b188d;
$custom-light: #855caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b188d",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 266.154,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36584,
    "c": 0.17417,
    "h": 296.1
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#4B188D
secondary
#88BF42
accent
#EE3A9F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B188D

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

Preview Lab → · Contrast checker → · Palette generator →

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