#4B197D#4B197D

#4B197D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.156 H 301.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4B197D
RGBrgb(75, 25, 125)
HSLhsl(270, 67%, 29%)
HSVhsv(270, 80%, 49%)
CMYKcmyk(40%, 80%, 0%, 51%)
CIE-LABlab(22.55, 42.90, -46.72)
CIE-LCHlch(22.55, 63.43, 312.56°)
OKLaboklab(35.18% 0.0808 -0.1334)
OKLCHoklch(35.18% 0.156 301.2)
XYZxyz(6.9500, 3.6717, 19.7406)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B197D #4B7D19
analogous
#19197D #4B197D #7D197D
triadic
#4B197D #7D4B19 #197D4B
tetradic
#4B197D #7D1919 #4B7D19 #197D7D
square
#4B197D #7D1919 #4B7D19 #197D7D
split-complementary
#4B197D #7D7D19 #197D19
monochromatic
#0F051A #2C0F4A #4B197D #6A23B0 #8839D7

Accessibility & contrast

On white

12.11
#4B197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B197D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B197D#FFFFFF#000000##FFFFFF
##4B197D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#40344A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b197d;
/* rgb */ color: rgb(75, 25, 125);
/* oklch */ color: oklch(35.2% 0.156 301.2);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4b197d',
    950: '#000000',
  },
}
SCSS
$custom: #4b197d;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b197d",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35184,
    "c": 0.15601,
    "h": 301.2
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#4B197D
secondary
#79B140
accent
#EA3E94
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B197D

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

Preview Lab → · Contrast checker → · Palette generator →

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