#4B198C#4B198C

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

Color values

HEX#4B198C
RGBrgb(75, 25, 140)
HSLhsl(266, 70%, 32%)
HSVhsv(266, 82%, 55%)
CMYKcmyk(46.4%, 82.1%, 0%, 45.1%)
CIE-LABlab(23.95, 46.76, -53.87)
CIE-LCHlch(23.95, 71.34, 310.96°)
OKLaboklab(36.58% 0.0762 -0.1544)
OKLCHoklch(36.58% 0.172 296.3)
XYZxyz(7.9816, 4.0844, 25.1737)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B198C #5A8C19
analogous
#19208C #4B198C #85198C
triadic
#4B198C #8C4B19 #198C4B
tetradic
#4B198C #8C1920 #5A8C19 #198C85
square
#4B198C #8C1920 #5A8C19 #198C85
split-complementary
#4B198C #8C8519 #208C19
monochromatic
#130624 #2F1058 #4B198C #6722C0 #8642DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B198C#FFFFFF#000000##FFFFFF
##4B198C1.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)
#003A8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#393A53
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b198c;
/* rgb */ color: rgb(75, 25, 140);
/* oklch */ color: oklch(36.6% 0.172 296.3);
Tailwind
colors: {
  custom: {
    50: '#855daf',
    500: '#4b198c',
    950: '#000000',
  },
}
SCSS
$custom: #4b198c;
$custom-light: #855daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b198c",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 266.087,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.1722,
    "h": 296.3
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#4B198C
secondary
#88BE43
accent
#ED3B9F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B198C

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

Preview Lab → · Contrast checker → · Palette generator →

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