#4F197C#4F197C

#4F197C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.156 H 304.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4F197C
RGBrgb(79, 25, 124)
HSLhsl(273, 66%, 29%)
HSVhsv(273, 80%, 49%)
CMYKcmyk(36.3%, 79.8%, 0%, 51.4%)
CIE-LABlab(23.04, 43.36, -45.27)
CIE-LCHlch(23.04, 62.69, 313.77°)
OKLaboklab(35.62% 0.0872 -0.129)
OKLCHoklch(35.62% 0.156 304.1)
XYZxyz(7.2093, 3.8128, 19.4210)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F197C #467C19
analogous
#1D197C #4F197C #7C1978
triadic
#4F197C #7C4F19 #197C4F
tetradic
#4F197C #7C1D19 #467C19 #19787C
square
#4F197C #7C1D19 #467C19 #19787C
split-complementary
#4F197C #787C19 #197C1D
monochromatic
#100519 #2F0F49 #4F197C #6F23AF #8F38D7

Accessibility & contrast

On white

11.91
#4F197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F197C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F197C#FFFFFF#000000##FFFFFF
##4F197C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f197c;
/* rgb */ color: rgb(79, 25, 124);
/* oklch */ color: oklch(35.6% 0.156 304.1);
Tailwind
colors: {
  custom: {
    50: '#855ca3',
    500: '#4f197c',
    950: '#000000',
  },
}
SCSS
$custom: #4f197c;
$custom-light: #855ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f197c",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 272.727,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35622,
    "c": 0.15575,
    "h": 304.1
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#4F197C
secondary
#73B040
accent
#E93E8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F197C

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

Preview Lab → · Contrast checker → · Palette generator →

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