#4F1F76#4F1F76

#4F1F76 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.142 H 305.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4F1F76
RGBrgb(79, 31, 118)
HSLhsl(273, 58%, 29%)
HSVhsv(273, 74%, 46%)
CMYKcmyk(33.1%, 73.7%, 0%, 53.7%)
CIE-LABlab(23.51, 39.13, -40.69)
CIE-LCHlch(23.51, 56.45, 313.88°)
OKLaboklab(35.79% 0.0825 -0.1156)
OKLCHoklch(35.79% 0.142 305.5)
XYZxyz(6.9837, 3.9503, 17.5306)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F76 #46761F
analogous
#231F76 #4F1F76 #761F72
triadic
#4F1F76 #764F1F #1F764F
tetradic
#4F1F76 #76231F #46761F #1F7276
square
#4F1F76 #76231F #46761F #1F7276
split-complementary
#4F1F76 #72761F #1F7623
monochromatic
#100618 #2F1246 #4F1F76 #6F2CA6 #8F42CD

Accessibility & contrast

On white

11.73
#4F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4F1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F76
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F76#FFFFFF#000000##FFFFFF
##4F1F761.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#483348
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1f76;
/* rgb */ color: rgb(79, 31, 118);
/* oklch */ color: oklch(35.8% 0.142 305.5);
Tailwind
colors: {
  custom: {
    50: '#845f9e',
    500: '#4f1f76',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f76;
$custom-light: #845f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f76",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 273.103,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35794,
    "c": 0.14201,
    "h": 305.5
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#4F1F76
secondary
#73AA47
accent
#E2468C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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