#4F20A6#4F20A6

#4F20A6 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.194 H 290.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4F20A6
RGBrgb(79, 32, 166)
HSLhsl(261, 68%, 39%)
HSVhsv(261, 81%, 65%)
CMYKcmyk(52.4%, 80.7%, 0%, 34.9%)
CIE-LABlab(27.97, 51.29, -63.19)
CIE-LCHlch(27.97, 81.39, 309.07°)
OKLaboklab(40.25% 0.0688 -0.1816)
OKLCHoklch(40.25% 0.194 290.7)
XYZxyz(10.6219, 5.4480, 36.5609)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F20A6 #77A620
analogous
#2034A6 #4F20A6 #9220A6
triadic
#4F20A6 #A64F20 #20A64F
tetradic
#4F20A6 #A62034 #77A620 #20A692
square
#4F20A6 #A62034 #77A620 #20A692
split-complementary
#4F20A6 #A69220 #34A620
monochromatic
#1E0C3F #371673 #4F20A6 #682DD6 #8D60E0

Accessibility & contrast

On white

10.05
#4F20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F20A6
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F20A6#FFFFFF#000000##FFFFFF
##4F20A61.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#2F4764
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f20a6;
/* rgb */ color: rgb(79, 32, 166);
/* oklch */ color: oklch(40.3% 0.194 290.7);
Tailwind
colors: {
  custom: {
    50: '#8a62c2',
    500: '#4f20a6',
    950: '#000000',
  },
}
SCSS
$custom: #4f20a6;
$custom-light: #8a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f20a6",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 261.045,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40253,
    "c": 0.19425,
    "h": 290.7
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#4F20A6
secondary
#A0C55D
accent
#EB3DAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #4F20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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