#4F197D#4F197D

#4F197D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.157 H 303.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4F197D
RGBrgb(79, 25, 125)
HSLhsl(272, 67%, 29%)
HSVhsv(272, 80%, 49%)
CMYKcmyk(36.8%, 80%, 0%, 51%)
CIE-LABlab(23.13, 43.61, -45.76)
CIE-LCHlch(23.13, 63.21, 313.62°)
OKLaboklab(35.71% 0.087 -0.1305)
OKLCHoklch(35.71% 0.157 303.7)
XYZxyz(7.2729, 3.8382, 19.7558)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F197D #477D19
analogous
#1D197D #4F197D #7D1979
triadic
#4F197D #7D4F19 #197D4F
tetradic
#4F197D #7D1D19 #477D19 #19797D
square
#4F197D #7D1D19 #477D19 #19797D
split-complementary
#4F197D #797D19 #197D1D
monochromatic
#10051A #2F0F4A #4F197D #6F23B0 #8F39D7

Accessibility & contrast

On white

11.88
#4F197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F197D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F197D#FFFFFF#000000##FFFFFF
##4F197D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#46334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f197d;
/* rgb */ color: rgb(79, 25, 125);
/* oklch */ color: oklch(35.7% 0.157 303.7);
Tailwind
colors: {
  custom: {
    50: '#855ca3',
    500: '#4f197d',
    950: '#000000',
  },
}
SCSS
$custom: #4f197d;
$custom-light: #855ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f197d",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 272.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.15681,
    "h": 303.7
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#4F197D
secondary
#74B140
accent
#EA3E8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F197D

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

Preview Lab → · Contrast checker → · Palette generator →

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