#4821C3#4821C3

#4821C3 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.7% C 0.226 H 282.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4821C3
RGBrgb(72, 33, 195)
HSLhsl(254, 71%, 45%)
HSVhsv(254, 83%, 76%)
CMYKcmyk(63.1%, 83.1%, 0%, 23.5%)
CIE-LABlab(30.41, 57.99, -76.48)
CIE-LCHlch(30.41, 95.98, 307.17°)
OKLaboklab(42.66% 0.0475 -0.2206)
OKLCHoklch(42.66% 0.226 282.1)
XYZxyz(13.0636, 6.4046, 52.1670)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4821C3 #9CC321
analogous
#214BC3 #4821C3 #9921C3
triadic
#4821C3 #C34821 #21C348
tetradic
#4821C3 #C3214B #9CC321 #21C399
square
#4821C3 #C3214B #9CC321 #21C399
split-complementary
#4821C3 #C39921 #4BC321
monochromatic
#210F5A #35188F #4821C3 #6842DF #9277E8

Accessibility & contrast

On white

9.21
#4821C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4821C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4821C3
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4821C3#FFFFFF#000000##FFFFFF
##4821C31.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC7
Deuteranopia (green-blind)
#0042C0
Tritanopia (blue-blind)
#005475
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4821c3;
/* rgb */ color: rgb(72, 33, 195);
/* oklch */ color: oklch(42.7% 0.226 282.1);
Tailwind
colors: {
  custom: {
    50: '#8b64d7',
    500: '#4821c3',
    950: '#000000',
  },
}
SCSS
$custom: #4821c3;
$custom-light: #8b64d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4821c3",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 195
  },
  "hsl": {
    "h": 254.444,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42659,
    "c": 0.22567,
    "h": 282.1
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#4821C3
secondary
#B8CF71
accent
#EE3AC3
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4821C3

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

Preview Lab → · Contrast checker → · Palette generator →

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