#4F1768#4F1768

#4F1768 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.137 H 313.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4F1768
RGBrgb(79, 23, 104)
HSLhsl(281, 64%, 25%)
HSVhsv(281, 78%, 41%)
CMYKcmyk(24%, 77.9%, 0%, 59.2%)
CIE-LABlab(21.11, 39.44, -35.52)
CIE-LCHlch(21.11, 53.08, 318.00°)
OKLaboklab(33.75% 0.0935 -0.1003)
OKLCHoklch(33.75% 0.137 313)
XYZxyz(6.0291, 3.2747, 13.4085)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1768 #306817
analogous
#261768 #4F1768 #681759
triadic
#4F1768 #684F17 #17684F
tetradic
#4F1768 #682617 #306817 #175968
square
#4F1768 #682617 #306817 #175968
split-complementary
#4F1768 #596817 #176826
monochromatic
#130619 #290C36 #4F1768 #75229A #9B2DCC

Accessibility & contrast

On white

12.69
#4F1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1768
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1768#FFFFFF#000000##FFFFFF
##4F17681.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#0E3466
Tritanopia (blue-blind)
#4C293E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1768;
/* rgb */ color: rgb(79, 23, 104);
/* oklch */ color: oklch(33.7% 0.137 313.0);
Tailwind
colors: {
  custom: {
    50: '#845a94',
    500: '#4f1768',
    950: '#000000',
  },
}
SCSS
$custom: #4f1768;
$custom-light: #845a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1768",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 281.481,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33749,
    "c": 0.13717,
    "h": 313
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#4F1768
secondary
#5B9E3D
accent
#E74174
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F1768

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

Preview Lab → · Contrast checker → · Palette generator →

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