#4F1D96#4F1D96

#4F1D96 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.180 H 295.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4F1D96
RGBrgb(79, 29, 150)
HSLhsl(265, 68%, 35%)
HSVhsv(265, 81%, 59%)
CMYKcmyk(47.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(25.99, 48.31, -56.70)
CIE-LCHlch(25.99, 74.49, 310.43°)
OKLaboklab(38.41% 0.0762 -0.1626)
OKLCHoklch(38.41% 0.18 295.1)
XYZxyz(9.1673, 4.7428, 29.2807)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D96 #64961D
analogous
#1D2896 #4F1D96 #8B1D96
triadic
#4F1D96 #964F1D #1D964F
tetradic
#4F1D96 #961D28 #64961D #1D968B
square
#4F1D96 #961D28 #64961D #1D968B
split-complementary
#4F1D96 #968B1D #28961D
monochromatic
#19092F #341363 #4F1D96 #6A27C9 #8A50DD

Accessibility & contrast

On white

10.78
#4F1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D96
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D96#FFFFFF#000000##FFFFFF
##4F1D961.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#3A3F5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f1d96;
/* rgb */ color: rgb(79, 29, 150);
/* oklch */ color: oklch(38.4% 0.180 295.1);
Tailwind
colors: {
  custom: {
    50: '#8860b6',
    500: '#4f1d96',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d96;
$custom-light: #8860b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d96",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 264.793,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38405,
    "c": 0.17957,
    "h": 295.1
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#4F1D96
secondary
#91C04F
accent
#EA3DA3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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