#4F1152#4F1152

#4F1152 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.123 H 326.0°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#4F1152
RGBrgb(79, 17, 82)
HSLhsl(297, 66%, 19%)
HSVhsv(297, 79%, 32%)
CMYKcmyk(3.7%, 79.3%, 0%, 67.8%)
CIE-LABlab(18.68, 37.20, -24.79)
CIE-LCHlch(18.68, 44.70, 326.32°)
OKLaboklab(31.52% 0.1021 -0.0689)
OKLCHoklch(31.52% 0.123 326)
XYZxyz(4.9478, 2.6727, 8.2363)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1152 #145211
analogous
#2F1152 #4F1152 #521135
triadic
#4F1152 #524F11 #11524F
tetradic
#4F1152 #522F11 #145211 #113552
square
#4F1152 #522F11 #145211 #113552
split-complementary
#4F1152 #355211 #11522F
monochromatic
#180519 #1E061F #4F1152 #801C85 #B126B7

Accessibility & contrast

On white

13.69
#4F1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4F1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1152
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1152#FFFFFF#000000##FFFFFF
##4F11521.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022954
Deuteranopia (green-blind)
#203050
Tritanopia (blue-blind)
#511C30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4f1152;
/* rgb */ color: rgb(79, 17, 82);
/* oklch */ color: oklch(31.5% 0.123 326.0);
Tailwind
colors: {
  custom: {
    50: '#835783',
    500: '#4f1152',
    950: '#000000',
  },
}
SCSS
$custom: #4f1152;
$custom-light: #835783;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1152",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 297.231,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31518,
    "c": 0.1232,
    "h": 326
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#4F1152
secondary
#388B34
accent
#E93F47
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4F1152

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

Preview Lab → · Contrast checker → · Palette generator →

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