#4B21A6#4B21A6

#4B21A6 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.193 H 288.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4B21A6
RGBrgb(75, 33, 166)
HSLhsl(259, 67%, 39%)
HSVhsv(259, 80%, 65%)
CMYKcmyk(54.8%, 80.1%, 0%, 34.9%)
CIE-LABlab(27.67, 50.34, -63.71)
CIE-LCHlch(27.67, 81.20, 308.32°)
OKLaboklab(39.94% 0.0619 -0.1833)
OKLCHoklch(39.94% 0.193 288.6)
XYZxyz(10.3264, 5.3362, 36.5549)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B21A6 #7CA621
analogous
#213AA6 #4B21A6 #8E21A6
triadic
#4B21A6 #A64B21 #21A64B
tetradic
#4B21A6 #A6213A #7CA621 #21A68E
square
#4B21A6 #A6213A #7CA621 #21A68E
split-complementary
#4B21A6 #A68E21 #3AA621
monochromatic
#1D0D40 #341773 #4B21A6 #632FD6 #8962E0

Accessibility & contrast

On white

10.16
#4B21A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4B21A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B21A6
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B21A6#FFFFFF#000000##FFFFFF
##4B21A61.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#264864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b21a6;
/* rgb */ color: rgb(75, 33, 166);
/* oklch */ color: oklch(39.9% 0.193 288.6);
Tailwind
colors: {
  custom: {
    50: '#8862c2',
    500: '#4b21a6',
    950: '#000000',
  },
}
SCSS
$custom: #4b21a6;
$custom-light: #8862c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b21a6",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 258.947,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39939,
    "c": 0.19345,
    "h": 288.6
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#4B21A6
secondary
#A4C55E
accent
#EA3EB4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4B21A6

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

Preview Lab → · Contrast checker → · Palette generator →

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