#4F20A5#4F20A5

#4F20A5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.193 H 291.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#4F20A5
RGBrgb(79, 32, 165)
HSLhsl(261, 68%, 39%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(52.1%, 80.6%, 0%, 35.3%)
CIE-LABlab(27.88, 51.02, -62.75)
CIE-LCHlch(27.88, 80.88, 309.12°)
OKLaboklab(40.16% 0.0691 -0.1803)
OKLCHoklch(40.16% 0.193 291)
XYZxyz(10.5305, 5.4115, 36.0797)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F20A5 #76A520
analogous
#2033A5 #4F20A5 #9120A5
triadic
#4F20A5 #A54F20 #20A54F
tetradic
#4F20A5 #A52033 #76A520 #20A591
square
#4F20A5 #A52033 #76A520 #20A591
split-complementary
#4F20A5 #A59120 #33A520
monochromatic
#1E0C3E #361672 #4F20A5 #682CD6 #8D5FE0

Accessibility & contrast

On white

10.08
#4F20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4F20A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F20A5
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F20A5#FFFFFF#000000##FFFFFF
##4F20A51.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A9
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#304763
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f20a5;
/* rgb */ color: rgb(79, 32, 165);
/* oklch */ color: oklch(40.2% 0.193 291.0);
Tailwind
colors: {
  custom: {
    50: '#8a62c1',
    500: '#4f20a5',
    950: '#000000',
  },
}
SCSS
$custom: #4f20a5;
$custom-light: #8a62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f20a5",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 261.203,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.19315,
    "h": 291
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#4F20A5
secondary
#A0C55C
accent
#EA3DAD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4F20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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