#4F1681#4F1681

#4F1681 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.164 H 302.6°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4F1681
RGBrgb(79, 22, 129)
HSLhsl(272, 71%, 30%)
HSVhsv(272, 83%, 51%)
CMYKcmyk(38.8%, 82.9%, 0%, 49.4%)
CIE-LABlab(23.07, 45.79, -48.39)
CIE-LCHlch(23.07, 66.62, 313.42°)
OKLaboklab(35.78% 0.0884 -0.1382)
OKLCHoklch(35.78% 0.164 302.6)
XYZxyz(7.4729, 3.8210, 21.1085)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1681 #488116
analogous
#1A1681 #4F1681 #81167E
triadic
#4F1681 #814F16 #16814F
tetradic
#4F1681 #811A16 #488116 #167E81
square
#4F1681 #811A16 #488116 #167E81
split-complementary
#4F1681 #7E8116 #16811A
monochromatic
#10041A #2F0D4D #4F1681 #6F1FB5 #8E35DD

Accessibility & contrast

On white

11.90
#4F1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1681
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1681#FFFFFF#000000##FFFFFF
##4F16811.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#44344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1681;
/* rgb */ color: rgb(79, 22, 129);
/* oklch */ color: oklch(35.8% 0.164 302.6);
Tailwind
colors: {
  custom: {
    50: '#865ba6',
    500: '#4f1681',
    950: '#000000',
  },
}
SCSS
$custom: #4f1681;
$custom-light: #865ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1681",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 271.963,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35778,
    "c": 0.164,
    "h": 302.6
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#4F1681
secondary
#75B63D
accent
#EE3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1681

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

Preview Lab → · Contrast checker → · Palette generator →

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