#4F1C8C#4F1C8C

#4F1C8C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.170 H 298.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#4F1C8C
RGBrgb(79, 28, 140)
HSLhsl(267, 67%, 33%)
HSVhsv(267, 80%, 55%)
CMYKcmyk(43.6%, 80%, 0%, 45.1%)
CIE-LABlab(24.91, 46.14, -52.28)
CIE-LCHlch(24.91, 69.73, 311.43°)
OKLaboklab(37.37% 0.0801 -0.1496)
OKLCHoklch(37.37% 0.17 298.2)
XYZxyz(8.3721, 4.3861, 25.2114)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1C8C #598C1C
analogous
#1C218C #4F1C8C #871C8C
triadic
#4F1C8C #8C4F1C #1C8C4F
tetradic
#4F1C8C #8C1C21 #598C1C #1C8C87
square
#4F1C8C #8C1C21 #598C1C #1C8C87
split-complementary
#4F1C8C #8C871C #218C1C
monochromatic
#150826 #321259 #4F1C8C #6C26BF #8B48DA

Accessibility & contrast

On white

11.19
#4F1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1C8C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1C8C#FFFFFF#000000##FFFFFF
##4F1C8C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3F3B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1c8c;
/* rgb */ color: rgb(79, 28, 140);
/* oklch */ color: oklch(37.4% 0.170 298.2);
Tailwind
colors: {
  custom: {
    50: '#875faf',
    500: '#4f1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #4f1c8c;
$custom-light: #875faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1c8c",
  "rgb": {
    "r": 79,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 267.321,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37367,
    "c": 0.16973,
    "h": 298.2
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#4F1C8C
secondary
#87BC48
accent
#EA3E9C
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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