#4B21AF#4B21AF

#4B21AF is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.8% C 0.203 H 286.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4B21AF
RGBrgb(75, 33, 175)
HSLhsl(258, 68%, 41%)
HSVhsv(258, 81%, 69%)
CMYKcmyk(57.1%, 81.1%, 0%, 31.4%)
CIE-LABlab(28.59, 52.81, -67.62)
CIE-LCHlch(28.59, 85.80, 307.99°)
OKLaboklab(40.85% 0.0589 -0.1947)
OKLCHoklch(40.85% 0.203 286.8)
XYZxyz(11.1811, 5.6781, 41.0559)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B21AF #85AF21
analogous
#213EAF #4B21AF #9221AF
triadic
#4B21AF #AF4B21 #21AF4B
tetradic
#4B21AF #AF213E #85AF21 #21AF92
square
#4B21AF #AF213E #85AF21 #21AF92
split-complementary
#4B21AF #AF9221 #3EAF21
monochromatic
#1F0E48 #35177C #4B21AF #6534D9 #8C68E3

Accessibility & contrast

On white

9.83
#4B21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4B21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B21AF
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B21AF#FFFFFF#000000##FFFFFF
##4B21AF1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B3
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#1A4C69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b21af;
/* rgb */ color: rgb(75, 33, 175);
/* oklch */ color: oklch(40.8% 0.203 286.8);
Tailwind
colors: {
  custom: {
    50: '#8963c8',
    500: '#4b21af',
    950: '#000000',
  },
}
SCSS
$custom: #4b21af;
$custom-light: #8963c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4b21af",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 257.746,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40845,
    "c": 0.20342,
    "h": 286.8
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#4B21AF
secondary
#AAC864
accent
#EB3DB8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4B21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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