#4F2181#4F2181

#4F2181 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.152 H 301.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4F2181
RGBrgb(79, 33, 129)
HSLhsl(269, 59%, 32%)
HSVhsv(269, 74%, 51%)
CMYKcmyk(38.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(24.75, 40.98, -45.65)
CIE-LCHlch(24.75, 61.35, 311.92°)
OKLaboklab(36.96% 0.0783 -0.1302)
OKLCHoklch(36.96% 0.152 301)
XYZxyz(7.7298, 4.3349, 21.1941)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2181 #538121
analogous
#212381 #4F2181 #7F2181
triadic
#4F2181 #814F21 #21814F
tetradic
#4F2181 #812123 #538121 #21817F
square
#4F2181 #812123 #538121 #21817F
split-complementary
#4F2181 #817F21 #238121
monochromatic
#130820 #311550 #4F2181 #6D2DB2 #8B4BD1

Accessibility & contrast

On white

11.25
#4F2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2181
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2181#FFFFFF#000000##FFFFFF
##4F21811.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#44394F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2181;
/* rgb */ color: rgb(79, 33, 129);
/* oklch */ color: oklch(37.0% 0.152 301.0);
Tailwind
colors: {
  custom: {
    50: '#8561a6',
    500: '#4f2181',
    950: '#000000',
  },
}
SCSS
$custom: #4f2181;
$custom-light: #8561a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2181",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 268.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36957,
    "c": 0.15191,
    "h": 301
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#4F2181
secondary
#81B44A
accent
#E24597
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4F2181

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

Preview Lab → · Contrast checker → · Palette generator →

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