#4821B2#4821B2

#4821B2 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.9% C 0.207 H 284.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4821B2
RGBrgb(72, 33, 178)
HSLhsl(256, 69%, 41%)
HSVhsv(256, 81%, 70%)
CMYKcmyk(59.6%, 81.5%, 0%, 30.2%)
CIE-LABlab(28.59, 53.30, -69.42)
CIE-LCHlch(28.59, 87.52, 307.52°)
OKLaboklab(40.87% 0.0532 -0.2001)
OKLCHoklch(40.87% 0.207 284.9)
XYZxyz(11.2498, 5.6791, 42.6142)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4821B2 #8BB221
analogous
#2143B2 #4821B2 #9121B2
triadic
#4821B2 #B24821 #21B248
tetradic
#4821B2 #B22143 #8BB221 #21B291
square
#4821B2 #B22143 #8BB221 #21B291
split-complementary
#4821B2 #B29121 #43B221
monochromatic
#1E0E4B #33177E #4821B2 #6236DA #8B6AE3

Accessibility & contrast

On white

9.83
#4821B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4821B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4821B2
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4821B2#FFFFFF#000000##FFFFFF
##4821B21.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)
#0047B6
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#024D6B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4821b2;
/* rgb */ color: rgb(72, 33, 178);
/* oklch */ color: oklch(40.9% 0.207 284.9);
Tailwind
colors: {
  custom: {
    50: '#8863ca',
    500: '#4821b2',
    950: '#000000',
  },
}
SCSS
$custom: #4821b2;
$custom-light: #8863ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4821b2",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 256.138,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40866,
    "c": 0.20702,
    "h": 284.9
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#4821B2
secondary
#AEC966
accent
#EC3CBC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4821B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4821B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva