#4F1C8F#4F1C8F

#4F1C8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.173 H 297.2°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4F1C8F
RGBrgb(79, 28, 143)
HSLhsl(267, 67%, 34%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(44.8%, 80.4%, 0%, 43.9%)
CIE-LABlab(25.19, 46.91, -53.69)
CIE-LCHlch(25.19, 71.30, 311.15°)
OKLaboklab(37.65% 0.0792 -0.1538)
OKLCHoklch(37.65% 0.173 297.2)
XYZxyz(8.5963, 4.4758, 26.3923)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1C8F #5C8F1C
analogous
#1C228F #4F1C8F #881C8F
triadic
#4F1C8F #8F4F1C #1C8F4F
tetradic
#4F1C8F #8F1C22 #5C8F1C #1C8F88
square
#4F1C8F #8F1C22 #5C8F1C #1C8F88
split-complementary
#4F1C8F #8F881C #228F1C
monochromatic
#160829 #33125C #4F1C8F #6B26C2 #8A4ADC

Accessibility & contrast

On white

11.08
#4F1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1C8F
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1C8F#FFFFFF#000000##FFFFFF
##4F1C8F1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#3E3C55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1c8f;
/* rgb */ color: rgb(79, 28, 143);
/* oklch */ color: oklch(37.6% 0.173 297.2);
Tailwind
colors: {
  custom: {
    50: '#875fb1',
    500: '#4f1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #4f1c8f;
$custom-light: #875fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1c8f",
  "rgb": {
    "r": 79,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 266.609,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37645,
    "c": 0.17298,
    "h": 297.2
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#4F1C8F
secondary
#8ABE49
accent
#EA3E9E
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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