#4B197F#4B197F

#4B197F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.158 H 300.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4B197F
RGBrgb(75, 25, 127)
HSLhsl(269, 67%, 30%)
HSVhsv(269, 80%, 50%)
CMYKcmyk(40.9%, 80.3%, 0%, 50.2%)
CIE-LABlab(22.74, 43.41, -47.70)
CIE-LCHlch(22.74, 64.49, 312.31°)
OKLaboklab(35.37% 0.0803 -0.1363)
OKLCHoklch(35.37% 0.158 300.5)
XYZxyz(7.0791, 3.7234, 20.4203)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B197F #4D7F19
analogous
#191A7F #4B197F #7E197F
triadic
#4B197F #7F4B19 #197F4B
tetradic
#4B197F #7F191A #4D7F19 #197F7E
square
#4B197F #7F191A #4D7F19 #197F7E
split-complementary
#4B197F #7F7E19 #1A7F19
monochromatic
#0F051A #2D0F4C #4B197F #6923B2 #883AD8

Accessibility & contrast

On white

12.04
#4B197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4B197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B197F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B197F#FFFFFF#000000##FFFFFF
##4B197F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#3F344C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b197f;
/* rgb */ color: rgb(75, 25, 127);
/* oklch */ color: oklch(35.4% 0.158 300.5);
Tailwind
colors: {
  custom: {
    50: '#835ca5',
    500: '#4b197f',
    950: '#000000',
  },
}
SCSS
$custom: #4b197f;
$custom-light: #835ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b197f",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 269.412,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35366,
    "c": 0.15817,
    "h": 300.5
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#4B197F
secondary
#7BB341
accent
#EA3E96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B197F

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

Preview Lab → · Contrast checker → · Palette generator →

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