#4B198B#4B198B

#4B198B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.171 H 296.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4B198B
RGBrgb(75, 25, 139)
HSLhsl(266, 70%, 32%)
HSVhsv(266, 82%, 55%)
CMYKcmyk(46%, 82%, 0%, 45.5%)
CIE-LABlab(23.85, 46.50, -53.41)
CIE-LCHlch(23.85, 70.82, 311.05°)
OKLaboklab(36.49% 0.0765 -0.1531)
OKLCHoklch(36.49% 0.171 296.6)
XYZxyz(7.9082, 4.0550, 24.7871)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B198B #598B19
analogous
#19208B #4B198B #84198B
triadic
#4B198B #8B4B19 #198B4B
tetradic
#4B198B #8B1920 #598B19 #198B84
square
#4B198B #8B1920 #598B19 #198B84
split-complementary
#4B198B #8B8419 #208B19
monochromatic
#130623 #2F1057 #4B198B #6722BF #8641DD

Accessibility & contrast

On white

11.60
#4B198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B198B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B198B#FFFFFF#000000##FFFFFF
##4B198B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#393A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b198b;
/* rgb */ color: rgb(75, 25, 139);
/* oklch */ color: oklch(36.5% 0.171 296.6);
Tailwind
colors: {
  custom: {
    50: '#845dae',
    500: '#4b198b',
    950: '#000000',
  },
}
SCSS
$custom: #4b198b;
$custom-light: #845dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b198b",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 266.316,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36487,
    "c": 0.17112,
    "h": 296.6
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#4B198B
secondary
#87BE42
accent
#EC3B9F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B198B

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

Preview Lab → · Contrast checker → · Palette generator →

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