#4F1F82#4F1F82

#4F1F82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.155 H 301.0°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4F1F82
RGBrgb(79, 31, 130)
HSLhsl(269, 61%, 32%)
HSVhsv(269, 76%, 51%)
CMYKcmyk(39.2%, 76.2%, 0%, 49%)
CIE-LABlab(24.49, 42.21, -46.70)
CIE-LCHlch(24.49, 62.94, 312.11°)
OKLaboklab(36.8% 0.0801 -0.1333)
OKLCHoklch(36.8% 0.155 301)
XYZxyz(7.7427, 4.2539, 21.5279)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F82 #52821F
analogous
#1F2082 #4F1F82 #811F82
triadic
#4F1F82 #824F1F #1F824F
tetradic
#4F1F82 #821F20 #52821F #1F8281
square
#4F1F82 #821F20 #52821F #1F8281
split-complementary
#4F1F82 #82811F #20821F
monochromatic
#13071F #311351 #4F1F82 #6D2BB3 #8C48D3

Accessibility & contrast

On white

11.35
#4F1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4F1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F82
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F82#FFFFFF#000000##FFFFFF
##4F1F821.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#44384F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f1f82;
/* rgb */ color: rgb(79, 31, 130);
/* oklch */ color: oklch(36.8% 0.155 301.0);
Tailwind
colors: {
  custom: {
    50: '#8560a7',
    500: '#4f1f82',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f82;
$custom-light: #8560a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f82",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 269.091,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36802,
    "c": 0.15547,
    "h": 301
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#4F1F82
secondary
#80B548
accent
#E54396
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4F1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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