#5229B4#5229B4

#5229B4 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 42.9% C 0.201 H 288.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5229B4
RGBrgb(82, 41, 180)
HSLhsl(258, 63%, 43%)
HSVhsv(258, 77%, 71%)
CMYKcmyk(54.4%, 77.2%, 0%, 29.4%)
CIE-LABlab(31.05, 51.51, -66.51)
CIE-LCHlch(31.05, 84.12, 307.75°)
OKLaboklab(42.88% 0.0628 -0.1913)
OKLCHoklch(42.88% 0.201 288.2)
XYZxyz(12.5084, 6.6744, 43.8004)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229B4 #8BB429
analogous
#2945B4 #5229B4 #9729B4
triadic
#5229B4 #B45229 #29B452
tetradic
#5229B4 #B42945 #8BB429 #29B497
square
#5229B4 #B42945 #8BB429 #29B497
split-complementary
#5229B4 #B49729 #45B429
monochromatic
#251250 #3B1E82 #5229B4 #7045D5 #9677E0

Accessibility & contrast

On white

8.99
#5229B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5229B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229B4
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229B4#FFFFFF#000000##FFFFFF
##5229B41.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#29516E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5229b4;
/* rgb */ color: rgb(82, 41, 180);
/* oklch */ color: oklch(42.9% 0.201 288.2);
Tailwind
colors: {
  custom: {
    50: '#8d68cc',
    500: '#5229b4',
    950: '#000000',
  },
}
SCSS
$custom: #5229b4;
$custom-light: #8d68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5229b4",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 180
  },
  "hsl": {
    "h": 257.698,
    "s": 62.896,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42884,
    "c": 0.20139,
    "h": 288.2
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#5229B4
secondary
#AEC871
accent
#E642B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229B4

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

Preview Lab → · Contrast checker → · Palette generator →

#5229B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva