#4F1252#4F1252

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

Color values

HEX#4F1252
RGBrgb(79, 18, 82)
HSLhsl(297, 64%, 20%)
HSVhsv(297, 78%, 32%)
CMYKcmyk(3.7%, 78%, 0%, 67.8%)
CIE-LABlab(18.82, 36.81, -24.57)
CIE-LCHlch(18.82, 44.26, 326.28°)
OKLaboklab(31.62% 0.101 -0.0683)
OKLCHoklch(31.62% 0.122 326)
XYZxyz(4.9636, 2.7044, 8.2416)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1252 #155212
analogous
#2F1252 #4F1252 #521235
triadic
#4F1252 #524F12 #12524F
tetradic
#4F1252 #522F12 #155212 #123552
square
#4F1252 #522F12 #155212 #123552
split-complementary
#4F1252 #355212 #12522F
monochromatic
#180619 #1F0720 #4F1252 #7F1D84 #B028B6

Accessibility & contrast

On white

13.63
#4F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4F1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1252
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1252#FFFFFF#000000##FFFFFF
##4F12521.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032954
Deuteranopia (green-blind)
#203050
Tritanopia (blue-blind)
#511D31
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1252;
/* rgb */ color: rgb(79, 18, 82);
/* oklch */ color: oklch(31.6% 0.122 326.0);
Tailwind
colors: {
  custom: {
    50: '#835783',
    500: '#4f1252',
    950: '#000000',
  },
}
SCSS
$custom: #4f1252;
$custom-light: #835783;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1252",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 297.188,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31616,
    "c": 0.12194,
    "h": 326
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#4F1252
secondary
#398B35
accent
#E74149
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4F1252

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

Preview Lab → · Contrast checker → · Palette generator →

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