#4F21AE#4F21AE

#4F21AE is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.1% C 0.202 H 288.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4F21AE
RGBrgb(79, 33, 174)
HSLhsl(260, 68%, 41%)
HSVhsv(260, 81%, 68%)
CMYKcmyk(54.6%, 81%, 0%, 31.8%)
CIE-LABlab(28.92, 53.02, -66.46)
CIE-LCHlch(28.92, 85.02, 308.58°)
OKLaboklab(41.15% 0.0655 -0.1912)
OKLCHoklch(41.15% 0.202 288.9)
XYZxyz(11.4060, 5.8054, 40.5557)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F21AE #80AE21
analogous
#213AAE #4F21AE #9521AE
triadic
#4F21AE #AE4F21 #21AE4F
tetradic
#4F21AE #AE213A #80AE21 #21AE95
square
#4F21AE #AE213A #80AE21 #21AE95
split-complementary
#4F21AE #AE9521 #3AAE21
monochromatic
#200D47 #38177B #4F21AE #6934D8 #8F67E2

Accessibility & contrast

On white

9.72
#4F21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F21AE
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F21AE#FFFFFF#000000##FFFFFF
##4F21AE1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B2
Deuteranopia (green-blind)
#0041AB
Tritanopia (blue-blind)
#284B68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f21ae;
/* rgb */ color: rgb(79, 33, 174);
/* oklch */ color: oklch(41.1% 0.202 288.9);
Tailwind
colors: {
  custom: {
    50: '#8b63c7',
    500: '#4f21ae',
    950: '#000000',
  },
}
SCSS
$custom: #4f21ae;
$custom-light: #8b63c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f21ae",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 259.574,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41145,
    "c": 0.2021,
    "h": 288.9
  },
  "luminance": 0.05806
}

Semantic roles & 50–950 ramp

primary
#4F21AE
secondary
#A7C863
accent
#EB3DB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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