#5227B2#5227B2

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

Color values

HEX#5227B2
RGBrgb(82, 39, 178)
HSLhsl(259, 64%, 43%)
HSVhsv(259, 78%, 70%)
CMYKcmyk(53.9%, 78.1%, 0%, 30.2%)
CIE-LABlab(30.54, 51.88, -66.16)
CIE-LCHlch(30.54, 84.08, 308.10°)
OKLaboklab(42.47% 0.0648 -0.1903)
OKLCHoklch(42.47% 0.201 288.8)
XYZxyz(12.2387, 6.4586, 42.7126)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227B2 #87B227
analogous
#2742B2 #5227B2 #9727B2
triadic
#5227B2 #B25227 #27B252
tetradic
#5227B2 #B22742 #87B227 #27B297
square
#5227B2 #B22742 #87B227 #27B297
split-complementary
#5227B2 #B29727 #42B227
monochromatic
#24114E #3B1C80 #5227B2 #6F41D5 #9573E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5227B2#FFFFFF#000000##FFFFFF
##5227B21.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)
#004BB6
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#2C4F6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5227b2;
/* rgb */ color: rgb(82, 39, 178);
/* oklch */ color: oklch(42.5% 0.201 288.8);
Tailwind
colors: {
  custom: {
    50: '#8d67ca',
    500: '#5227b2',
    950: '#000000',
  },
}
SCSS
$custom: #5227b2;
$custom-light: #8d67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5227b2",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 258.561,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42468,
    "c": 0.20104,
    "h": 288.8
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#5227B2
secondary
#ACC86D
accent
#E741B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5227B2

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

Preview Lab → · Contrast checker → · Palette generator →

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