#4A20B3#4A20B3

#4A20B3 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 41.1% C 0.209 H 285.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4A20B3
RGBrgb(74, 32, 179)
HSLhsl(257, 70%, 41%)
HSVhsv(257, 82%, 70%)
CMYKcmyk(58.7%, 82.1%, 0%, 29.8%)
CIE-LABlab(28.75, 54.21, -69.73)
CIE-LCHlch(28.75, 88.33, 307.86°)
OKLaboklab(41.06% 0.0566 -0.2009)
OKLCHoklch(41.06% 0.209 285.7)
XYZxyz(11.4748, 5.7428, 43.1429)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A20B3 #89B320
analogous
#2040B3 #4A20B3 #9420B3
triadic
#4A20B3 #B34A20 #20B34A
tetradic
#4A20B3 #B32040 #89B320 #20B394
square
#4A20B3 #B32040 #89B320 #20B394
split-complementary
#4A20B3 #B39420 #40B320
monochromatic
#1F0D4B #35177F #4A20B3 #6535DB #8C69E4

Accessibility & contrast

On white

9.77
#4A20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4A20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A20B3
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A20B3#FFFFFF#000000##FFFFFF
##4A20B31.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#0E4D6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a20b3;
/* rgb */ color: rgb(74, 32, 179);
/* oklch */ color: oklch(41.1% 0.209 285.7);
Tailwind
colors: {
  custom: {
    50: '#8a63cb',
    500: '#4a20b3',
    950: '#000000',
  },
}
SCSS
$custom: #4a20b3;
$custom-light: #8a63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a20b3",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 257.143,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41061,
    "c": 0.20872,
    "h": 285.7
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#4A20B3
secondary
#ADCA65
accent
#EC3BBA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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