#5229B3#5229B3

#5229B3 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.200 H 288.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5229B3
RGBrgb(82, 41, 179)
HSLhsl(258, 63%, 43%)
HSVhsv(258, 77%, 70%)
CMYKcmyk(54.2%, 77.1%, 0%, 29.8%)
CIE-LABlab(30.96, 51.23, -66.07)
CIE-LCHlch(30.96, 83.61, 307.79°)
OKLaboklab(42.79% 0.0631 -0.1901)
OKLCHoklch(42.79% 0.2 288.4)
XYZxyz(12.4069, 6.6338, 43.2658)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5229B3 #8AB329
analogous
#2945B3 #5229B3 #9729B3
triadic
#5229B3 #B35229 #29B352
tetradic
#5229B3 #B32945 #8AB329 #29B397
square
#5229B3 #B32945 #8AB329 #29B397
split-complementary
#5229B3 #B39729 #45B329
monochromatic
#24124F #3B1E81 #5229B3 #6F45D4 #9677E0

Accessibility & contrast

On white

9.03
#5229B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5229B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5229B3
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5229B3#FFFFFF#000000##FFFFFF
##5229B31.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#2A506D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5229b3;
/* rgb */ color: rgb(82, 41, 179);
/* oklch */ color: oklch(42.8% 0.200 288.4);
Tailwind
colors: {
  custom: {
    50: '#8d68cb',
    500: '#5229b3',
    950: '#000000',
  },
}
SCSS
$custom: #5229b3;
$custom-light: #8d68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5229b3",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 179
  },
  "hsl": {
    "h": 257.826,
    "s": 62.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42788,
    "c": 0.20025,
    "h": 288.4
  },
  "luminance": 0.06634
}

Semantic roles & 50–950 ramp

primary
#5229B3
secondary
#AEC770
accent
#E642B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5229B3

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

Preview Lab → · Contrast checker → · Palette generator →

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