#5229BC#5229BC

#5229BC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.7% C 0.210 H 286.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5229BC
RGBrgb(82, 41, 188)
HSLhsl(257, 64%, 45%)
HSVhsv(257, 78%, 74%)
CMYKcmyk(56.4%, 78.2%, 0%, 26.3%)
CIE-LABlab(31.83, 53.73, -69.98)
CIE-LCHlch(31.83, 88.23, 307.52°)
OKLaboklab(43.66% 0.0605 -0.2015)
OKLCHoklch(43.66% 0.21 286.7)
XYZxyz(13.3470, 7.0098, 48.2169)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229BC #93BC29
analogous
#2949BC #5229BC #9C29BC
triadic
#5229BC #BC5229 #29BC52
tetradic
#5229BC #BC2949 #93BC29 #29BC9C
square
#5229BC #BC2949 #93BC29 #29BC9C
split-complementary
#5229BC #BC9C29 #49BC29
monochromatic
#261358 #3C1E8A #5229BC #724BD8 #997DE3

Accessibility & contrast

On white

8.74
#5229BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5229BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229BC
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229BC#FFFFFF#000000##FFFFFF
##5229BC1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#205472
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5229bc;
/* rgb */ color: rgb(82, 41, 188);
/* oklch */ color: oklch(43.7% 0.210 286.7);
Tailwind
colors: {
  custom: {
    50: '#8f68d1',
    500: '#5229bc',
    950: '#000000',
  },
}
SCSS
$custom: #5229bc;
$custom-light: #8f68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5229bc",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 188
  },
  "hsl": {
    "h": 256.735,
    "s": 64.192,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43659,
    "c": 0.21035,
    "h": 286.7
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#5229BC
secondary
#B3CB76
accent
#E741B9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5229BC

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

Preview Lab → · Contrast checker → · Palette generator →

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