#4F1B71#4F1B71

#4F1B71 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.142 H 308.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4F1B71
RGBrgb(79, 27, 113)
HSLhsl(276, 61%, 27%)
HSVhsv(276, 76%, 44%)
CMYKcmyk(30.1%, 76.1%, 0%, 55.7%)
CIE-LABlab(22.44, 39.79, -39.21)
CIE-LCHlch(22.44, 55.86, 315.42°)
OKLaboklab(34.91% 0.0877 -0.1112)
OKLCHoklch(34.91% 0.142 308.3)
XYZxyz(6.5964, 3.6385, 15.9744)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B71 #3D711B
analogous
#241B71 #4F1B71 #711B68
triadic
#4F1B71 #714F1B #1B714F
tetradic
#4F1B71 #71241B #3D711B #1B6871
square
#4F1B71 #71241B #3D711B #1B6871
split-complementary
#4F1B71 #68711B #1B7124
monochromatic
#110619 #2C0F40 #4F1B71 #7227A2 #9337CF

Accessibility & contrast

On white

12.16
#4F1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1B71
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B71#FFFFFF#000000##FFFFFF
##4F1B711.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#02366F
Tritanopia (blue-blind)
#4A2F44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1b71;
/* rgb */ color: rgb(79, 27, 113);
/* oklch */ color: oklch(34.9% 0.142 308.3);
Tailwind
colors: {
  custom: {
    50: '#845d9a',
    500: '#4f1b71',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b71;
$custom-light: #845d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b71",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 276.279,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34911,
    "c": 0.14166,
    "h": 308.3
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#4F1B71
secondary
#69A642
accent
#E54383
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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