#5225CA#5225CA

#5225CA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.7% C 0.229 H 284.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5225CA
RGBrgb(82, 37, 202)
HSLhsl(256, 69%, 47%)
HSVhsv(256, 82%, 79%)
CMYKcmyk(59.4%, 81.7%, 0%, 20.8%)
CIE-LABlab(32.66, 59.26, -76.83)
CIE-LCHlch(32.66, 97.03, 307.64°)
OKLaboklab(44.66% 0.0583 -0.2214)
OKLCHoklch(44.66% 0.229 284.8)
XYZxyz(14.7987, 7.3803, 56.5104)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225CA #9DCA25
analogous
#254ACA #5225CA #A525CA
triadic
#5225CA #CA5225 #25CA52
tetradic
#5225CA #CA254A #9DCA25 #25CAA5
square
#5225CA #CA254A #9DCA25 #25CAA5
split-complementary
#5225CA #CAA525 #4ACA25
monochromatic
#281263 #3D1C96 #5225CA #754EDF #9D81E8

Accessibility & contrast

On white

8.48
#5225CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5225CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225CA
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225CA#FFFFFF#000000##FFFFFF
##5225CA1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CE
Deuteranopia (green-blind)
#0048C7
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5225ca;
/* rgb */ color: rgb(82, 37, 202);
/* oklch */ color: oklch(44.7% 0.229 284.8);
Tailwind
colors: {
  custom: {
    50: '#9167dc',
    500: '#5225ca',
    950: '#000000',
  },
}
SCSS
$custom: #5225ca;
$custom-light: #9167dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5225ca",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 202
  },
  "hsl": {
    "h": 256.364,
    "s": 69.038,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.229,
    "h": 284.8
  },
  "luminance": 0.07381
}

Semantic roles & 50–950 ramp

primary
#5225CA
secondary
#B9D17A
accent
#EC3CBC
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5225CA

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

Preview Lab → · Contrast checker → · Palette generator →

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