#4B197A#4B197A

#4B197A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.153 H 302.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4B197A
RGBrgb(75, 25, 122)
HSLhsl(271, 66%, 29%)
HSVhsv(271, 80%, 48%)
CMYKcmyk(38.5%, 79.5%, 0%, 52.2%)
CIE-LABlab(22.29, 42.14, -45.25)
CIE-LCHlch(22.29, 61.83, 312.96°)
OKLaboklab(34.92% 0.0816 -0.1291)
OKLCHoklch(34.92% 0.153 302.3)
XYZxyz(6.7613, 3.5962, 18.7465)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B197A #487A19
analogous
#1B197A #4B197A #7A1979
triadic
#4B197A #7A4B19 #197A4B
tetradic
#4B197A #7A1B19 #487A19 #19797A
square
#4B197A #7A1B19 #487A19 #19797A
split-complementary
#4B197A #797A19 #197A1B
monochromatic
#100519 #2C0F47 #4B197A #6A23AD #8937D6

Accessibility & contrast

On white

12.21
#4B197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4B197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B197A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B197A#FFFFFF#000000##FFFFFF
##4B197A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#413249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b197a;
/* rgb */ color: rgb(75, 25, 122);
/* oklch */ color: oklch(34.9% 0.153 302.3);
Tailwind
colors: {
  custom: {
    50: '#825ca1',
    500: '#4b197a',
    950: '#000000',
  },
}
SCSS
$custom: #4b197a;
$custom-light: #825ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b197a",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 270.928,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34915,
    "c": 0.15276,
    "h": 302.3
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#4B197A
secondary
#76AF40
accent
#E93F91
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B197A

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

Preview Lab → · Contrast checker → · Palette generator →

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