#5525B2#5525B2

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

Color values

HEX#5525B2
RGBrgb(85, 37, 178)
HSLhsl(260, 66%, 42%)
HSVhsv(260, 79%, 70%)
CMYKcmyk(52.2%, 79.2%, 0%, 30.2%)
CIE-LABlab(30.56, 53.16, -66.11)
CIE-LCHlch(30.56, 84.84, 308.80°)
OKLaboklab(42.56% 0.0708 -0.19)
OKLCHoklch(42.56% 0.203 290.4)
XYZxyz(12.4414, 6.4682, 42.7038)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5525B2 #82B225
analogous
#253BB2 #5525B2 #9C25B2
triadic
#5525B2 #B25525 #25B255
tetradic
#5525B2 #B2253B #82B225 #25B29C
square
#5525B2 #B2253B #82B225 #25B29C
split-complementary
#5525B2 #B29C25 #3BB225
monochromatic
#25104D #3D1A7F #5525B2 #723DD7 #9770E1

Accessibility & contrast

On white

9.16
#5525B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5525B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5525B2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5525B2#FFFFFF#000000##FFFFFF
##5525B21.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#334E6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5525b2;
/* rgb */ color: rgb(85, 37, 178);
/* oklch */ color: oklch(42.6% 0.203 290.4);
Tailwind
colors: {
  custom: {
    50: '#8f66ca',
    500: '#5525b2',
    950: '#000000',
  },
}
SCSS
$custom: #5525b2;
$custom-light: #8f66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5525b2",
  "rgb": {
    "r": 85,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 260.426,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42561,
    "c": 0.20282,
    "h": 290.4
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#5525B2
secondary
#A8C86B
accent
#E93FAF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5525B2

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

Preview Lab → · Contrast checker → · Palette generator →

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