#4821CA#4821CA

#4821CA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.4% C 0.233 H 281.1°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#4821CA
RGBrgb(72, 33, 202)
HSLhsl(254, 72%, 46%)
HSVhsv(254, 84%, 79%)
CMYKcmyk(64.4%, 83.7%, 0%, 20.8%)
CIE-LABlab(31.18, 59.90, -79.31)
CIE-LCHlch(31.18, 99.38, 307.06°)
OKLaboklab(43.41% 0.0451 -0.2288)
OKLCHoklch(43.41% 0.233 281.1)
XYZxyz(13.8737, 6.7286, 56.4333)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4821CA #A3CA21
analogous
#214ECA #4821CA #9C21CA
triadic
#4821CA #CA4821 #21CA48
tetradic
#4821CA #CA214E #A3CA21 #21CA9C
square
#4821CA #CA214E #A3CA21 #21CA9C
split-complementary
#4821CA #CA9C21 #4ECA21
monochromatic
#221061 #351895 #4821CA #6B47E1 #957CEA

Accessibility & contrast

On white

8.95
#4821CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4821CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4821CA
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4821CA#FFFFFF#000000##FFFFFF
##4821CA1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4821ca;
/* rgb */ color: rgb(72, 33, 202);
/* oklch */ color: oklch(43.4% 0.233 281.1);
Tailwind
colors: {
  custom: {
    50: '#8d64dc',
    500: '#4821ca',
    950: '#000000',
  },
}
SCSS
$custom: #4821ca;
$custom-light: #8d64dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4821ca",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 253.846,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43412,
    "c": 0.23324,
    "h": 281.1
  },
  "luminance": 0.0673
}

Semantic roles & 50–950 ramp

primary
#4821CA
secondary
#BCD275
accent
#EF39C5
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4821CA

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

Preview Lab → · Contrast checker → · Palette generator →

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