#4821AE#4821AE

#4821AE is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.5% C 0.203 H 285.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4821AE
RGBrgb(72, 33, 174)
HSLhsl(257, 68%, 41%)
HSVhsv(257, 81%, 68%)
CMYKcmyk(58.6%, 81%, 0%, 31.8%)
CIE-LABlab(28.17, 52.19, -67.71)
CIE-LCHlch(28.17, 85.49, 307.62°)
OKLaboklab(40.45% 0.0546 -0.1951)
OKLCHoklch(40.45% 0.203 285.6)
XYZxyz(10.8540, 5.5208, 40.5299)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4821AE #87AE21
analogous
#2140AE #4821AE #8E21AE
triadic
#4821AE #AE4821 #21AE48
tetradic
#4821AE #AE2140 #87AE21 #21AE8E
square
#4821AE #AE2140 #87AE21 #21AE8E
split-complementary
#4821AE #AE8E21 #40AE21
monochromatic
#1D0D47 #33177B #4821AE #6134D8 #8967E2

Accessibility & contrast

On white

9.98
#4821AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4821AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4821AE
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4821AE#FFFFFF#000000##FFFFFF
##4821AE1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#0E4C68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4821ae;
/* rgb */ color: rgb(72, 33, 174);
/* oklch */ color: oklch(40.5% 0.203 285.6);
Tailwind
colors: {
  custom: {
    50: '#8863c7',
    500: '#4821ae',
    950: '#000000',
  },
}
SCSS
$custom: #4821ae;
$custom-light: #8863c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4821ae",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 256.596,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40453,
    "c": 0.20257,
    "h": 285.6
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#4821AE
secondary
#ACC863
accent
#EB3DBB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4821AE

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

Preview Lab → · Contrast checker → · Palette generator →

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