#4F1158#4F1158

#4F1158 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.129 H 322.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#4F1158
RGBrgb(79, 17, 88)
HSLhsl(292, 68%, 21%)
HSVhsv(292, 81%, 35%)
CMYKcmyk(10.2%, 80.7%, 0%, 65.5%)
CIE-LABlab(19.09, 38.40, -28.18)
CIE-LCHlch(19.09, 47.63, 323.72°)
OKLaboklab(31.94% 0.1018 -0.0788)
OKLCHoklch(31.94% 0.129 322.3)
XYZxyz(5.1862, 2.7680, 9.4917)
Luminance0.0277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1158 #1A5811
analogous
#2B1158 #4F1158 #58113D
triadic
#4F1158 #584F11 #11584F
tetradic
#4F1158 #582B11 #1A5811 #113D58
square
#4F1158 #582B11 #1A5811 #113D58
split-complementary
#4F1158 #3D5811 #11582B
monochromatic
#17051A #210725 #4F1158 #7D1B8B #AB25BF

Accessibility & contrast

On white

13.52
#4F1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4F1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1158
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1158#FFFFFF#000000##FFFFFF
##4F11581.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#1C3156
Tritanopia (blue-blind)
#501F34
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1158;
/* rgb */ color: rgb(79, 17, 88);
/* oklch */ color: oklch(31.9% 0.129 322.3);
Tailwind
colors: {
  custom: {
    50: '#835787',
    500: '#4f1158',
    950: '#000000',
  },
}
SCSS
$custom: #4f1158;
$custom-light: #835787;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1158",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 292.394,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31939,
    "c": 0.12872,
    "h": 322.3
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#4F1158
secondary
#409134
accent
#EA3D53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1158

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

Preview Lab → · Contrast checker → · Palette generator →

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