#4C198D#4C198D

#4C198D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.173 H 296.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4C198D
RGBrgb(76, 25, 141)
HSLhsl(266, 70%, 33%)
HSVhsv(266, 82%, 55%)
CMYKcmyk(46.1%, 82.3%, 0%, 44.7%)
CIE-LABlab(24.18, 47.17, -54.12)
CIE-LCHlch(24.18, 71.79, 311.08°)
OKLaboklab(36.8% 0.0774 -0.1551)
OKLCHoklch(36.8% 0.173 296.5)
XYZxyz(8.1346, 4.1547, 25.5675)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C198D #5A8D19
analogous
#19208D #4C198D #86198D
triadic
#4C198D #8D4C19 #198D4C
tetradic
#4C198D #8D1920 #5A8D19 #198D86
square
#4C198D #8D1920 #5A8D19 #198D86
split-complementary
#4C198D #8D8619 #208D19
monochromatic
#140725 #301059 #4C198D #6822C1 #8743DE

Accessibility & contrast

On white

11.47
#4C198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C198D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C198D#FFFFFF#000000##FFFFFF
##4C198D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3A3A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c198d;
/* rgb */ color: rgb(76, 25, 141);
/* oklch */ color: oklch(36.8% 0.173 296.5);
Tailwind
colors: {
  custom: {
    50: '#855daf',
    500: '#4c198d',
    950: '#000000',
  },
}
SCSS
$custom: #4c198d;
$custom-light: #855daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c198d",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 266.379,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36799,
    "c": 0.17336,
    "h": 296.5
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#4C198D
secondary
#88BF43
accent
#ED3B9F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C198D

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

Preview Lab → · Contrast checker → · Palette generator →

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