#4F1258#4F1258

#4F1258 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.128 H 322.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#4F1258
RGBrgb(79, 18, 88)
HSLhsl(292, 66%, 21%)
HSVhsv(292, 80%, 35%)
CMYKcmyk(10.2%, 79.5%, 0%, 65.5%)
CIE-LABlab(19.22, 38.01, -27.97)
CIE-LCHlch(19.22, 47.19, 323.66°)
OKLaboklab(32.03% 0.1008 -0.0782)
OKLCHoklch(32.03% 0.128 322.2)
XYZxyz(5.2020, 2.7998, 9.4970)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1258 #1B5812
analogous
#2C1258 #4F1258 #58123E
triadic
#4F1258 #584F12 #12584F
tetradic
#4F1258 #582C12 #1B5812 #123E58
square
#4F1258 #582C12 #1B5812 #123E58
split-complementary
#4F1258 #3E5812 #12582C
monochromatic
#170519 #210825 #4F1258 #7D1C8B #AA27BE

Accessibility & contrast

On white

13.46
#4F1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4F1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1258
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1258#FFFFFF#000000##FFFFFF
##4F12581.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1258;
/* rgb */ color: rgb(79, 18, 88);
/* oklch */ color: oklch(32.0% 0.128 322.2);
Tailwind
colors: {
  custom: {
    50: '#835787',
    500: '#4f1258',
    950: '#000000',
  },
}
SCSS
$custom: #4f1258;
$custom-light: #835787;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1258",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 292.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32034,
    "c": 0.12753,
    "h": 322.2
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#4F1258
secondary
#419135
accent
#E93F55
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1258

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

Preview Lab → · Contrast checker → · Palette generator →

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