#4F1D97#4F1D97

#4F1D97 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.181 H 294.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4F1D97
RGBrgb(79, 29, 151)
HSLhsl(265, 68%, 35%)
HSVhsv(265, 81%, 59%)
CMYKcmyk(47.7%, 80.8%, 0%, 40.8%)
CIE-LABlab(26.08, 48.58, -57.16)
CIE-LCHlch(26.08, 75.01, 310.36°)
OKLaboklab(38.5% 0.0759 -0.164)
OKLCHoklch(38.5% 0.181 294.8)
XYZxyz(9.2482, 4.7751, 29.7066)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D97 #65971D
analogous
#1D2897 #4F1D97 #8C1D97
triadic
#4F1D97 #974F1D #1D974F
tetradic
#4F1D97 #971D28 #65971D #1D978C
square
#4F1D97 #971D28 #65971D #1D978C
split-complementary
#4F1D97 #978C1D #28971D
monochromatic
#190930 #341364 #4F1D97 #6A27CA #8B51DE

Accessibility & contrast

On white

10.74
#4F1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D97
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D97#FFFFFF#000000##FFFFFF
##4F1D971.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#3A405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f1d97;
/* rgb */ color: rgb(79, 29, 151);
/* oklch */ color: oklch(38.5% 0.181 294.8);
Tailwind
colors: {
  custom: {
    50: '#8860b7',
    500: '#4f1d97',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d97;
$custom-light: #8860b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d97",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 264.59,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.385,
    "c": 0.18066,
    "h": 294.8
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#4F1D97
secondary
#92C04F
accent
#EB3DA4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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