#4B197B#4B197B

#4B197B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.154 H 301.9°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4B197B
RGBrgb(75, 25, 123)
HSLhsl(271, 66%, 29%)
HSVhsv(271, 80%, 48%)
CMYKcmyk(39%, 79.7%, 0%, 51.8%)
CIE-LABlab(22.38, 42.39, -45.74)
CIE-LCHlch(22.38, 62.36, 312.82°)
OKLaboklab(35% 0.0814 -0.1306)
OKLCHoklch(35% 0.154 301.9)
XYZxyz(6.8236, 3.6211, 19.0745)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B197B #497B19
analogous
#1A197B #4B197B #7B197A
triadic
#4B197B #7B4B19 #197B4B
tetradic
#4B197B #7B1A19 #497B19 #197A7B
square
#4B197B #7B1A19 #497B19 #197A7B
split-complementary
#4B197B #7A7B19 #197B1A
monochromatic
#100519 #2C0F48 #4B197B #6A23AE #8938D7

Accessibility & contrast

On white

12.18
#4B197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B197B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B197B#FFFFFF#000000##FFFFFF
##4B197B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#413349
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b197b;
/* rgb */ color: rgb(75, 25, 123);
/* oklch */ color: oklch(35.0% 0.154 301.9);
Tailwind
colors: {
  custom: {
    50: '#825ca2',
    500: '#4b197b',
    950: '#000000',
  },
}
SCSS
$custom: #4b197b;
$custom-light: #825ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b197b",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 270.612,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35005,
    "c": 0.15384,
    "h": 301.9
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#4B197B
secondary
#77AF40
accent
#E93F92
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B197B

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

Preview Lab → · Contrast checker → · Palette generator →

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