#4F1D8E#4F1D8E

#4F1D8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.171 H 297.4°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4F1D8E
RGBrgb(79, 29, 142)
HSLhsl(267, 66%, 34%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(44.4%, 79.6%, 0%, 44.3%)
CIE-LABlab(25.24, 46.23, -52.98)
CIE-LCHlch(25.24, 70.31, 311.11°)
OKLaboklab(37.66% 0.0787 -0.1517)
OKLCHoklch(37.66% 0.171 297.4)
XYZxyz(8.5450, 4.4938, 26.0031)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D8E #5C8E1D
analogous
#1D238E #4F1D8E #871D8E
triadic
#4F1D8E #8E4F1D #1D8E4F
tetradic
#4F1D8E #8E1D23 #5C8E1D #1D8E87
square
#4F1D8E #8E1D23 #5C8E1D #1D8E87
split-complementary
#4F1D8E #8E871D #238E1D
monochromatic
#160828 #33135B #4F1D8E #6B27C1 #8A4BDA

Accessibility & contrast

On white

11.06
#4F1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D8E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D8E#FFFFFF#000000##FFFFFF
##4F1D8E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#3E3C55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1d8e;
/* rgb */ color: rgb(79, 29, 142);
/* oklch */ color: oklch(37.7% 0.171 297.4);
Tailwind
colors: {
  custom: {
    50: '#875fb0',
    500: '#4f1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d8e;
$custom-light: #875fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d8e",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 266.549,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37655,
    "c": 0.17089,
    "h": 297.4
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#4F1D8E
secondary
#8ABD4A
accent
#E93F9E
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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