#4F1254#4F1254

#4F1254 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.124 H 324.7°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#4F1254
RGBrgb(79, 18, 84)
HSLhsl(295, 65%, 20%)
HSVhsv(295, 79%, 33%)
CMYKcmyk(6%, 78.6%, 0%, 67.1%)
CIE-LABlab(18.95, 37.21, -25.71)
CIE-LCHlch(18.95, 45.23, 325.35°)
OKLaboklab(31.75% 0.101 -0.0716)
OKLCHoklch(31.75% 0.124 324.7)
XYZxyz(5.0409, 2.7353, 8.6482)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1254 #175412
analogous
#2E1254 #4F1254 #541238
triadic
#4F1254 #544F12 #12544F
tetradic
#4F1254 #542E12 #175412 #123854
square
#4F1254 #542E12 #175412 #123854
split-complementary
#4F1254 #385412 #12542E
monochromatic
#180519 #200722 #4F1254 #7E1D86 #AE28B9

Accessibility & contrast

On white

13.57
#4F1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1254
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1254#FFFFFF#000000##FFFFFF
##4F12541.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#1F3152
Tritanopia (blue-blind)
#511D32
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f1254;
/* rgb */ color: rgb(79, 18, 84);
/* oklch */ color: oklch(31.8% 0.124 324.7);
Tailwind
colors: {
  custom: {
    50: '#835784',
    500: '#4f1254',
    950: '#000000',
  },
}
SCSS
$custom: #4f1254;
$custom-light: #835784;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1254",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 295.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.12379,
    "h": 324.7
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#4F1254
secondary
#3C8D35
accent
#E8404D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F1254

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

Preview Lab → · Contrast checker → · Palette generator →

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