#5225BC#5225BC

#5225BC is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.2% C 0.214 H 287.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5225BC
RGBrgb(82, 37, 188)
HSLhsl(258, 67%, 44%)
HSVhsv(258, 80%, 74%)
CMYKcmyk(56.4%, 80.3%, 0%, 26.3%)
CIE-LABlab(31.22, 55.48, -70.98)
CIE-LCHlch(31.22, 90.09, 308.01°)
OKLaboklab(43.24% 0.063 -0.2044)
OKLCHoklch(43.24% 0.214 287.1)
XYZxyz(13.2156, 6.7471, 48.1731)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225BC #8FBC25
analogous
#2544BC #5225BC #9E25BC
triadic
#5225BC #BC5225 #25BC52
tetradic
#5225BC #BC2544 #8FBC25 #25BC9E
square
#5225BC #BC2544 #8FBC25 #25BC9E
split-complementary
#5225BC #BC9E25 #44BC25
monochromatic
#251156 #3C1B89 #5225BC #7144DA #9877E4

Accessibility & contrast

On white

8.94
#5225BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5225BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225BC
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225BC#FFFFFF#000000##FFFFFF
##5225BC1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#205271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5225bc;
/* rgb */ color: rgb(82, 37, 188);
/* oklch */ color: oklch(43.2% 0.214 287.1);
Tailwind
colors: {
  custom: {
    50: '#8f66d1',
    500: '#5225bc',
    950: '#000000',
  },
}
SCSS
$custom: #5225bc;
$custom-light: #8f66d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5225bc",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 188
  },
  "hsl": {
    "h": 257.881,
    "s": 67.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43239,
    "c": 0.21385,
    "h": 287.1
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#5225BC
secondary
#B1CC71
accent
#EA3EB7
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5225BC

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

Preview Lab → · Contrast checker → · Palette generator →

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