#4F20A1#4F20A1

#4F20A1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.189 H 291.9°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4F20A1
RGBrgb(79, 32, 161)
HSLhsl(262, 67%, 38%)
HSVhsv(262, 80%, 63%)
CMYKcmyk(50.9%, 80.1%, 0%, 36.9%)
CIE-LABlab(27.49, 49.95, -60.97)
CIE-LCHlch(27.49, 78.82, 309.33°)
OKLaboklab(39.77% 0.0704 -0.1751)
OKLCHoklch(39.77% 0.189 291.9)
XYZxyz(10.1722, 5.2681, 34.1922)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F20A1 #72A120
analogous
#2032A1 #4F20A1 #8F20A1
triadic
#4F20A1 #A14F20 #20A14F
tetradic
#4F20A1 #A12032 #72A120 #20A18F
square
#4F20A1 #A12032 #72A120 #20A18F
split-complementary
#4F20A1 #A18F20 #32A120
monochromatic
#1D0C3B #36166E #4F20A1 #682AD4 #8C5DDF

Accessibility & contrast

On white

10.23
#4F20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F20A1
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F20A1#FFFFFF#000000##FFFFFF
##4F20A11.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#334561
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f20a1;
/* rgb */ color: rgb(79, 32, 161);
/* oklch */ color: oklch(39.8% 0.189 291.9);
Tailwind
colors: {
  custom: {
    50: '#8962be',
    500: '#4f20a1',
    950: '#000000',
  },
}
SCSS
$custom: #4f20a1;
$custom-light: #8962be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f20a1",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 261.86,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39766,
    "c": 0.18877,
    "h": 291.9
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#4F20A1
secondary
#9DC35A
accent
#EA3EAB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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