#4B21CA#4B21CA

#4B21CA is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.7% C 0.233 H 282.3°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#4B21CA
RGBrgb(75, 33, 202)
HSLhsl(255, 72%, 46%)
HSVhsv(255, 84%, 79%)
CMYKcmyk(62.9%, 83.7%, 0%, 20.8%)
CIE-LABlab(31.46, 60.15, -78.84)
CIE-LCHlch(31.46, 99.17, 307.34°)
OKLaboklab(43.67% 0.0496 -0.2274)
OKLCHoklch(43.67% 0.233 282.3)
XYZxyz(14.1028, 6.8468, 56.4441)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B21CA #A0CA21
analogous
#214BCA #4B21CA #9F21CA
triadic
#4B21CA #CA4B21 #21CA4B
tetradic
#4B21CA #CA214B #A0CA21 #21CA9F
square
#4B21CA #CA214B #A0CA21 #21CA9F
split-complementary
#4B21CA #CA9F21 #4BCA21
monochromatic
#241061 #371895 #4B21CA #6D47E1 #977CEA

Accessibility & contrast

On white

8.86
#4B21CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4B21CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B21CA
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B21CA#FFFFFF#000000##FFFFFF
##4B21CA1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCE
Deuteranopia (green-blind)
#0044C7
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4b21ca;
/* rgb */ color: rgb(75, 33, 202);
/* oklch */ color: oklch(43.7% 0.233 282.3);
Tailwind
colors: {
  custom: {
    50: '#8e65dc',
    500: '#4b21ca',
    950: '#000000',
  },
}
SCSS
$custom: #4b21ca;
$custom-light: #8e65dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b21ca",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 254.911,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43667,
    "c": 0.23277,
    "h": 282.3
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#4B21CA
secondary
#BBD275
accent
#EF39C2
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4B21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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