#4821A6#4821A6

#4821A6 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.194 H 287.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4821A6
RGBrgb(72, 33, 166)
HSLhsl(258, 67%, 39%)
HSVhsv(258, 80%, 65%)
CMYKcmyk(56.6%, 80.1%, 0%, 34.9%)
CIE-LABlab(27.35, 49.96, -64.25)
CIE-LCHlch(27.35, 81.39, 307.87°)
OKLaboklab(39.64% 0.0572 -0.185)
OKLCHoklch(39.64% 0.194 287.2)
XYZxyz(10.0972, 5.2181, 36.5441)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4821A6 #7FA621
analogous
#213DA6 #4821A6 #8B21A6
triadic
#4821A6 #A64821 #21A648
tetradic
#4821A6 #A6213D #7FA621 #21A68B
square
#4821A6 #A6213D #7FA621 #21A68B
split-complementary
#4821A6 #A68B21 #3DA621
monochromatic
#1C0D40 #321773 #4821A6 #602FD6 #8762E0

Accessibility & contrast

On white

10.27
#4821A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4821A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4821A6
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4821A6#FFFFFF#000000##FFFFFF
##4821A61.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#1D4864
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4821a6;
/* rgb */ color: rgb(72, 33, 166);
/* oklch */ color: oklch(39.6% 0.194 287.2);
Tailwind
colors: {
  custom: {
    50: '#8662c2',
    500: '#4821a6',
    950: '#000000',
  },
}
SCSS
$custom: #4821a6;
$custom-light: #8662c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4821a6",
  "rgb": {
    "r": 72,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 257.594,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39637,
    "c": 0.19361,
    "h": 287.2
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#4821A6
secondary
#A7C55E
accent
#EA3EB7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4821A6

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

Preview Lab → · Contrast checker → · Palette generator →

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