#4F1D7E#4F1D7E

#4F1D7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.153 H 302.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#4F1D7E
RGBrgb(79, 29, 126)
HSLhsl(271, 63%, 30%)
HSVhsv(271, 77%, 49%)
CMYKcmyk(37.3%, 77%, 0%, 50.6%)
CIE-LABlab(23.83, 42.11, -45.26)
CIE-LCHlch(23.83, 61.82, 312.94°)
OKLaboklab(36.23% 0.083 -0.129)
OKLCHoklch(36.23% 0.153 302.7)
XYZxyz(7.4288, 4.0473, 20.1245)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D7E #4C7E1D
analogous
#1E1D7E #4F1D7E #7E1D7C
triadic
#4F1D7E #7E4F1D #1D7E4F
tetradic
#4F1D7E #7E1E1D #4C7E1D #1D7C7E
square
#4F1D7E #7E1E1D #4C7E1D #1D7C7E
split-complementary
#4F1D7E #7C7E1D #1D7E1E
monochromatic
#11061B #30124C #4F1D7E #6E28B0 #8D42D3

Accessibility & contrast

On white

11.61
#4F1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4F1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D7E
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D7E#FFFFFF#000000##FFFFFF
##4F1D7E1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#45354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1d7e;
/* rgb */ color: rgb(79, 29, 126);
/* oklch */ color: oklch(36.2% 0.153 302.7);
Tailwind
colors: {
  custom: {
    50: '#855ea4',
    500: '#4f1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d7e;
$custom-light: #855ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d7e",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 270.928,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36227,
    "c": 0.15339,
    "h": 302.7
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#4F1D7E
secondary
#7AB145
accent
#E64291
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4F1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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