#4F1790#4F1790

#4F1790 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.179 H 297.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#4F1790
RGBrgb(79, 23, 144)
HSLhsl(268, 72%, 33%)
HSVhsv(268, 84%, 56%)
CMYKcmyk(45.1%, 84%, 0%, 43.5%)
CIE-LABlab(24.60, 49.14, -55.27)
CIE-LCHlch(24.60, 73.95, 311.64°)
OKLaboklab(37.27% 0.0826 -0.1583)
OKLCHoklch(37.27% 0.179 297.5)
XYZxyz(8.5636, 4.2885, 26.7567)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1790 #589017
analogous
#171B90 #4F1790 #8C1790
triadic
#4F1790 #904F17 #17904F
tetradic
#4F1790 #90171B #589017 #17908C
square
#4F1790 #90171B #589017 #17908C
split-complementary
#4F1790 #908C17 #1B9017
monochromatic
#150626 #320F5B #4F1790 #6C1FC5 #8B41E1

Accessibility & contrast

On white

11.30
#4F1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1790
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1790#FFFFFF#000000##FFFFFF
##4F17901.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#3E3A55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f1790;
/* rgb */ color: rgb(79, 23, 144);
/* oklch */ color: oklch(37.3% 0.179 297.5);
Tailwind
colors: {
  custom: {
    50: '#885db2',
    500: '#4f1790',
    950: '#000000',
  },
}
SCSS
$custom: #4f1790;
$custom-light: #885db2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1790",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 267.769,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3727,
    "c": 0.1786,
    "h": 297.5
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#4F1790
secondary
#86C142
accent
#EF399B
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1790

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

Preview Lab → · Contrast checker → · Palette generator →

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