#5228B2#5228B2

#5228B2 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.6% C 0.200 H 288.7°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5228B2
RGBrgb(82, 40, 178)
HSLhsl(258, 63%, 43%)
HSVhsv(258, 78%, 70%)
CMYKcmyk(53.9%, 77.5%, 0%, 30.2%)
CIE-LABlab(30.70, 51.42, -65.90)
CIE-LCHlch(30.70, 83.59, 307.96°)
OKLaboklab(42.58% 0.0641 -0.1895)
OKLCHoklch(42.58% 0.2 288.7)
XYZxyz(12.2720, 6.5252, 42.7237)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5228B2 #88B228
analogous
#2843B2 #5228B2 #9728B2
triadic
#5228B2 #B25228 #28B252
tetradic
#5228B2 #B22843 #88B228 #28B297
square
#5228B2 #B22843 #88B228 #28B297
split-complementary
#5228B2 #B29728 #43B228
monochromatic
#24124E #3B1D80 #5228B2 #6F43D5 #9575E0

Accessibility & contrast

On white

9.11
#5228B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5228B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5228B2
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5228B2#FFFFFF#000000##FFFFFF
##5228B21.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#2C4F6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5228b2;
/* rgb */ color: rgb(82, 40, 178);
/* oklch */ color: oklch(42.6% 0.200 288.7);
Tailwind
colors: {
  custom: {
    50: '#8d67ca',
    500: '#5228b2',
    950: '#000000',
  },
}
SCSS
$custom: #5228b2;
$custom-light: #8d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5228b2",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 258.261,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42579,
    "c": 0.20009,
    "h": 288.7
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#5228B2
secondary
#ACC76F
accent
#E641B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5228B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5228B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva