#5225E2#5225E2

#5225E2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.2% C 0.254 H 281.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5225E2
RGBrgb(82, 37, 226)
HSLhsl(254, 77%, 52%)
HSVhsv(254, 84%, 89%)
CMYKcmyk(63.7%, 83.6%, 0%, 11.4%)
CIE-LABlab(35.22, 65.65, -86.47)
CIE-LCHlch(35.22, 108.57, 307.21°)
OKLaboklab(47.16% 0.0502 -0.2495)
OKLCHoklch(47.16% 0.254 281.4)
XYZxyz(17.8644, 8.6066, 72.6566)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5225E2 #B5E225
analogous
#2557E2 #5225E2 #B125E2
triadic
#5225E2 #E25225 #25E252
tetradic
#5225E2 #E22557 #B5E225 #25E2B1
square
#5225E2 #E22557 #B5E225 #25E2B1
split-complementary
#5225E2 #E2B125 #57E225
monochromatic
#2A117C #3C18B2 #5225E2 #7D5BE9 #A891F0

Accessibility & contrast

On white

7.72
#5225E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5225E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5225E2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5225E2#FFFFFF#000000##FFFFFF
##5225E21.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#004CDF
Tritanopia (blue-blind)
#006288
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5225e2;
/* rgb */ color: rgb(82, 37, 226);
/* oklch */ color: oklch(47.2% 0.254 281.4);
Tailwind
colors: {
  custom: {
    50: '#9569ed',
    500: '#5225e2',
    950: '#000000',
  },
}
SCSS
$custom: #5225e2;
$custom-light: #9569ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5225e2",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 226
  },
  "hsl": {
    "h": 254.286,
    "s": 76.518,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47161,
    "c": 0.25447,
    "h": 281.4
  },
  "luminance": 0.08608
}

Semantic roles & 50–950 ramp

primary
#5225E2
secondary
#C7DB88
accent
#F335C6
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5225E2

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

Preview Lab → · Contrast checker → · Palette generator →

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