#4F1B7D#4F1B7D

#4F1B7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.155 H 303.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4F1B7D
RGBrgb(79, 27, 125)
HSLhsl(272, 64%, 30%)
HSVhsv(272, 78%, 49%)
CMYKcmyk(36.8%, 78.4%, 0%, 51%)
CIE-LABlab(23.43, 42.75, -45.27)
CIE-LCHlch(23.43, 62.27, 313.36°)
OKLaboklab(35.92% 0.0851 -0.129)
OKLCHoklch(35.92% 0.155 303.4)
XYZxyz(7.3172, 3.9268, 19.7705)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B7D #497D1B
analogous
#1E1B7D #4F1B7D #7D1B7A
triadic
#4F1B7D #7D4F1B #1B7D4F
tetradic
#4F1B7D #7D1E1B #497D1B #1B7A7D
square
#4F1B7D #7D1E1B #497D1B #1B7A7D
split-complementary
#4F1B7D #7A7D1B #1B7D1E
monochromatic
#100519 #2F104B #4F1B7D #6F26AF #8E3DD5

Accessibility & contrast

On white

11.76
#4F1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1B7D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B7D#FFFFFF#000000##FFFFFF
##4F1B7D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1b7d;
/* rgb */ color: rgb(79, 27, 125);
/* oklch */ color: oklch(35.9% 0.155 303.4);
Tailwind
colors: {
  custom: {
    50: '#855da3',
    500: '#4f1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b7d;
$custom-light: #855da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b7d",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 271.837,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35919,
    "c": 0.1546,
    "h": 303.4
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#4F1B7D
secondary
#77B143
accent
#E7408F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4F1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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