#4A21B2#4A21B2

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

Color values

HEX#4A21B2
RGBrgb(74, 33, 178)
HSLhsl(257, 69%, 41%)
HSVhsv(257, 81%, 70%)
CMYKcmyk(58.4%, 81.5%, 0%, 30.2%)
CIE-LABlab(28.79, 53.52, -69.08)
CIE-LCHlch(28.79, 87.39, 307.77°)
OKLaboklab(41.06% 0.0563 -0.199)
OKLCHoklch(41.06% 0.207 285.8)
XYZxyz(11.4013, 5.7572, 42.6213)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A21B2 #89B221
analogous
#2140B2 #4A21B2 #9321B2
triadic
#4A21B2 #B24A21 #21B24A
tetradic
#4A21B2 #B22140 #89B221 #21B293
square
#4A21B2 #B22140 #89B221 #21B293
split-complementary
#4A21B2 #B29321 #40B221
monochromatic
#1F0E4B #35177E #4A21B2 #6536DA #8C6AE3

Accessibility & contrast

On white

9.76
#4A21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A21B2
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A21B2#FFFFFF#000000##FFFFFF
##4A21B21.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B6
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#104D6B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a21b2;
/* rgb */ color: rgb(74, 33, 178);
/* oklch */ color: oklch(41.1% 0.207 285.8);
Tailwind
colors: {
  custom: {
    50: '#8963ca',
    500: '#4a21b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a21b2;
$custom-light: #8963ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a21b2",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 256.966,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41055,
    "c": 0.20682,
    "h": 285.8
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#4A21B2
secondary
#ADC966
accent
#EC3CBA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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