#4F1266#4F1266

#4F1266 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.141 H 314.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#4F1266
RGBrgb(79, 18, 102)
HSLhsl(284, 70%, 24%)
HSVhsv(284, 82%, 40%)
CMYKcmyk(22.5%, 82.4%, 0%, 60%)
CIE-LABlab(20.26, 40.99, -35.58)
CIE-LCHlch(20.26, 54.28, 319.04°)
OKLaboklab(33.1% 0.0988 -0.1005)
OKLCHoklch(33.1% 0.141 314.5)
XYZxyz(5.8386, 3.0544, 12.8498)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1266 #296612
analogous
#251266 #4F1266 #661253
triadic
#4F1266 #664F12 #12664F
tetradic
#4F1266 #662512 #296612 #125366
square
#4F1266 #662512 #296612 #125366
split-complementary
#4F1266 #536612 #126625
monochromatic
#14051A #270932 #4F1266 #771B9A #A024CE

Accessibility & contrast

On white

13.04
#4F1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4F1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1266
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1266#FFFFFF#000000##FFFFFF
##4F12661.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#0C3264
Tritanopia (blue-blind)
#4D263C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f1266;
/* rgb */ color: rgb(79, 18, 102);
/* oklch */ color: oklch(33.1% 0.141 314.5);
Tailwind
colors: {
  custom: {
    50: '#845892',
    500: '#4f1266',
    950: '#000000',
  },
}
SCSS
$custom: #4f1266;
$custom-light: #845892;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1266",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 283.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33098,
    "c": 0.14095,
    "h": 314.5
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#4F1266
secondary
#529E36
accent
#ED3B6C
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F1266

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

Preview Lab → · Contrast checker → · Palette generator →

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