#5229BA#5229BA

#5229BA is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.208 H 287.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5229BA
RGBrgb(82, 41, 186)
HSLhsl(257, 64%, 45%)
HSVhsv(257, 78%, 73%)
CMYKcmyk(55.9%, 78%, 0%, 27.1%)
CIE-LABlab(31.63, 53.17, -69.12)
CIE-LCHlch(31.63, 87.21, 307.57°)
OKLaboklab(43.46% 0.061 -0.199)
OKLCHoklch(43.46% 0.208 287.1)
XYZxyz(13.1329, 6.9242, 47.0893)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229BA #91BA29
analogous
#2948BA #5229BA #9B29BA
triadic
#5229BA #BA5229 #29BA52
tetradic
#5229BA #BA2948 #91BA29 #29BA9B
square
#5229BA #BA2948 #91BA29 #29BA9B
split-complementary
#5229BA #BA9B29 #48BA29
monochromatic
#261356 #3C1E88 #5229BA #7149D7 #987BE2

Accessibility & contrast

On white

8.81
#5229BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5229BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229BA
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229BA#FFFFFF#000000##FFFFFF
##5229BA1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#235371
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5229ba;
/* rgb */ color: rgb(82, 41, 186);
/* oklch */ color: oklch(43.5% 0.208 287.1);
Tailwind
colors: {
  custom: {
    50: '#8e68d0',
    500: '#5229ba',
    950: '#000000',
  },
}
SCSS
$custom: #5229ba;
$custom-light: #8e68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5229ba",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 186
  },
  "hsl": {
    "h": 256.966,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43464,
    "c": 0.20812,
    "h": 287.1
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#5229BA
secondary
#B2CA75
accent
#E741B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5229BA

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

Preview Lab → · Contrast checker → · Palette generator →

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