#4F197B#4F197B

#4F197B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.155 H 304.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4F197B
RGBrgb(79, 25, 123)
HSLhsl(273, 66%, 29%)
HSVhsv(273, 80%, 48%)
CMYKcmyk(35.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(22.96, 43.12, -44.77)
CIE-LCHlch(22.96, 62.16, 313.92°)
OKLaboklab(35.53% 0.0875 -0.1276)
OKLCHoklch(35.53% 0.155 304.4)
XYZxyz(7.1464, 3.7876, 19.0896)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F197B #457B19
analogous
#1E197B #4F197B #7B1976
triadic
#4F197B #7B4F19 #197B4F
tetradic
#4F197B #7B1E19 #457B19 #19767B
square
#4F197B #7B1E19 #457B19 #19767B
split-complementary
#4F197B #767B19 #197B1E
monochromatic
#100519 #2E0F48 #4F197B #7023AE #8F38D7

Accessibility & contrast

On white

11.95
#4F197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F197B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F197B#FFFFFF#000000##FFFFFF
##4F197B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#463249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f197b;
/* rgb */ color: rgb(79, 25, 123);
/* oklch */ color: oklch(35.5% 0.155 304.4);
Tailwind
colors: {
  custom: {
    50: '#855ca2',
    500: '#4f197b',
    950: '#000000',
  },
}
SCSS
$custom: #4f197b;
$custom-light: #855ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f197b",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 273.061,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35535,
    "c": 0.15469,
    "h": 304.4
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#4F197B
secondary
#72AF40
accent
#E93F8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F197B

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

Preview Lab → · Contrast checker → · Palette generator →

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