#4F197E#4F197E

#4F197E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.158 H 303.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4F197E
RGBrgb(79, 25, 126)
HSLhsl(272, 67%, 30%)
HSVhsv(272, 80%, 49%)
CMYKcmyk(37.3%, 80.2%, 0%, 50.6%)
CIE-LABlab(23.22, 43.86, -46.25)
CIE-LCHlch(23.22, 63.74, 313.48°)
OKLaboklab(35.8% 0.0867 -0.1319)
OKLCHoklch(35.8% 0.158 303.3)
XYZxyz(7.3371, 3.8639, 20.0939)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F197E #487E19
analogous
#1D197E #4F197E #7E197B
triadic
#4F197E #7E4F19 #197E4F
tetradic
#4F197E #7E1D19 #487E19 #197B7E
square
#4F197E #7E1D19 #487E19 #197B7E
split-complementary
#4F197E #7B7E19 #197E1D
monochromatic
#10051A #2F0F4B #4F197E #6F23B1 #8E3AD8

Accessibility & contrast

On white

11.85
#4F197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F197E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F197E#FFFFFF#000000##FFFFFF
##4F197E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#45334B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f197e;
/* rgb */ color: rgb(79, 25, 126);
/* oklch */ color: oklch(35.8% 0.158 303.3);
Tailwind
colors: {
  custom: {
    50: '#855da4',
    500: '#4f197e',
    950: '#000000',
  },
}
SCSS
$custom: #4f197e;
$custom-light: #855da4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f197e",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 272.079,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35797,
    "c": 0.15787,
    "h": 303.3
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#4F197E
secondary
#75B241
accent
#EA3E8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F197E

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

Preview Lab → · Contrast checker → · Palette generator →

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