#4F1C8E#4F1C8E

#4F1C8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.172 H 297.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#4F1C8E
RGBrgb(79, 28, 142)
HSLhsl(267, 67%, 33%)
HSVhsv(267, 80%, 56%)
CMYKcmyk(44.4%, 80.3%, 0%, 44.3%)
CIE-LABlab(25.09, 46.65, -53.22)
CIE-LCHlch(25.09, 70.78, 311.24°)
OKLaboklab(37.55% 0.0795 -0.1524)
OKLCHoklch(37.55% 0.172 297.6)
XYZxyz(8.5209, 4.4456, 25.9951)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1C8E #5B8E1C
analogous
#1C228E #4F1C8E #881C8E
triadic
#4F1C8E #8E4F1C #1C8E4F
tetradic
#4F1C8E #8E1C22 #5B8E1C #1C8E88
square
#4F1C8E #8E1C22 #5B8E1C #1C8E88
split-complementary
#4F1C8E #8E881C #228E1C
monochromatic
#160828 #33125B #4F1C8E #6B26C1 #8B49DB

Accessibility & contrast

On white

11.12
#4F1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4F1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1C8E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1C8E#FFFFFF#000000##FFFFFF
##4F1C8E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1c8e;
/* rgb */ color: rgb(79, 28, 142);
/* oklch */ color: oklch(37.6% 0.172 297.6);
Tailwind
colors: {
  custom: {
    50: '#875fb0',
    500: '#4f1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1c8e;
$custom-light: #875fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1c8e",
  "rgb": {
    "r": 79,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 266.842,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37552,
    "c": 0.17189,
    "h": 297.6
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#4F1C8E
secondary
#89BD49
accent
#EA3E9D
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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