#4F1B7F#4F1B7F

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

Color values

HEX#4F1B7F
RGBrgb(79, 27, 127)
HSLhsl(271, 65%, 30%)
HSVhsv(271, 79%, 50%)
CMYKcmyk(37.8%, 78.7%, 0%, 50.2%)
CIE-LABlab(23.60, 43.26, -46.26)
CIE-LCHlch(23.60, 63.33, 313.08°)
OKLaboklab(36.09% 0.0846 -0.132)
OKLCHoklch(36.09% 0.157 302.7)
XYZxyz(7.4462, 3.9784, 20.4502)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B7F #4B7F1B
analogous
#1D1B7F #4F1B7F #7F1B7D
triadic
#4F1B7F #7F4F1B #1B7F4F
tetradic
#4F1B7F #7F1D1B #4B7F1B #1B7D7F
square
#4F1B7F #7F1D1B #4B7F1B #1B7D7F
split-complementary
#4F1B7F #7D7F1B #1B7F1D
monochromatic
#10061A #30104D #4F1B7F #6E26B1 #8D3ED6

Accessibility & contrast

On white

11.70
#4F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1B7F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B7F#FFFFFF#000000##FFFFFF
##4F1B7F1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#45354C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1b7f;
/* rgb */ color: rgb(79, 27, 127);
/* oklch */ color: oklch(36.1% 0.157 302.7);
Tailwind
colors: {
  custom: {
    50: '#855ea5',
    500: '#4f1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b7f;
$custom-light: #855ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b7f",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 271.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36093,
    "c": 0.15676,
    "h": 302.7
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#4F1B7F
secondary
#79B343
accent
#E84091
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4F1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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