#4F1168#4F1168

#4F1168 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.144 H 313.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#4F1168
RGBrgb(79, 17, 104)
HSLhsl(283, 72%, 24%)
HSVhsv(283, 84%, 41%)
CMYKcmyk(24%, 83.7%, 0%, 59.2%)
CIE-LABlab(20.29, 41.79, -36.84)
CIE-LCHlch(20.29, 55.71, 318.61°)
OKLaboklab(33.17% 0.0993 -0.1042)
OKLCHoklch(33.17% 0.144 313.6)
XYZxyz(5.9232, 3.0628, 13.3732)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1168 #2A6811
analogous
#231168 #4F1168 #681155
triadic
#4F1168 #684F11 #11684F
tetradic
#4F1168 #682311 #2A6811 #115568
square
#4F1168 #682311 #2A6811 #115568
split-complementary
#4F1168 #556811 #116823
monochromatic
#14041A #270833 #4F1168 #771A9D #9F22D1

Accessibility & contrast

On white

13.02
#4F1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1168
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1168#FFFFFF#000000##FFFFFF
##4F11681.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#073266
Tritanopia (blue-blind)
#4C263D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f1168;
/* rgb */ color: rgb(79, 17, 104);
/* oklch */ color: oklch(33.2% 0.144 313.6);
Tailwind
colors: {
  custom: {
    50: '#845894',
    500: '#4f1168',
    950: '#000000',
  },
}
SCSS
$custom: #4f1168;
$custom-light: #845894;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1168",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 282.759,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.14394,
    "h": 313.6
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#4F1168
secondary
#54A035
accent
#EF396D
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F1168

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

Preview Lab → · Contrast checker → · Palette generator →

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