#4F1D7D#4F1D7D

#4F1D7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.152 H 303.1°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4F1D7D
RGBrgb(79, 29, 125)
HSLhsl(271, 62%, 30%)
HSVhsv(271, 77%, 49%)
CMYKcmyk(36.8%, 76.8%, 0%, 51%)
CIE-LABlab(23.74, 41.85, -44.76)
CIE-LCHlch(23.74, 61.28, 313.08°)
OKLaboklab(36.14% 0.0832 -0.1276)
OKLCHoklch(36.14% 0.152 303.1)
XYZxyz(7.3646, 4.0217, 19.7863)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D7D #4B7D1D
analogous
#1F1D7D #4F1D7D #7D1D7B
triadic
#4F1D7D #7D4F1D #1D7D4F
tetradic
#4F1D7D #7D1F1D #4B7D1D #1D7B7D
square
#4F1D7D #7D1F1D #4B7D1D #1D7B7D
split-complementary
#4F1D7D #7B7D1D #1D7D1F
monochromatic
#10061A #30114B #4F1D7D #6E29AF #8D41D3

Accessibility & contrast

On white

11.64
#4F1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D7D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D7D#FFFFFF#000000##FFFFFF
##4F1D7D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#46354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1d7d;
/* rgb */ color: rgb(79, 29, 125);
/* oklch */ color: oklch(36.1% 0.152 303.1);
Tailwind
colors: {
  custom: {
    50: '#855ea3',
    500: '#4f1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d7d;
$custom-light: #855ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d7d",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 271.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36141,
    "c": 0.15229,
    "h": 303.1
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#4F1D7D
secondary
#79B145
accent
#E54291
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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