#4F1788#4F1788

#4F1788 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.170 H 300.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4F1788
RGBrgb(79, 23, 136)
HSLhsl(270, 71%, 31%)
HSVhsv(270, 83%, 53%)
CMYKcmyk(41.9%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.84, 47.14, -51.53)
CIE-LCHlch(23.84, 69.84, 312.45°)
OKLaboklab(36.51% 0.0853 -0.1474)
OKLCHoklch(36.51% 0.17 300.1)
XYZxyz(7.9737, 4.0525, 23.6499)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1788 #508817
analogous
#171788 #4F1788 #871788
triadic
#4F1788 #884F17 #17884F
tetradic
#4F1788 #881717 #508817 #178887
square
#4F1788 #881717 #508817 #178887
split-complementary
#4F1788 #888717 #178817
monochromatic
#12051F #310E54 #4F1788 #6D20BC #8C3BDE

Accessibility & contrast

On white

11.60
#4F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4F1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1788
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1788#FFFFFF#000000##FFFFFF
##4F17881.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#413750
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1788;
/* rgb */ color: rgb(79, 23, 136);
/* oklch */ color: oklch(36.5% 0.170 300.1);
Tailwind
colors: {
  custom: {
    50: '#875cac',
    500: '#4f1788',
    950: '#000000',
  },
}
SCSS
$custom: #4f1788;
$custom-light: #875cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1788",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 269.735,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36513,
    "c": 0.1703,
    "h": 300.1
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#4F1788
secondary
#7EBC3F
accent
#EE3A95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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