#5227A5#5227A5

#5227A5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.186 H 291.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5227A5
RGBrgb(82, 39, 165)
HSLhsl(260, 62%, 40%)
HSVhsv(260, 76%, 65%)
CMYKcmyk(50.3%, 76.4%, 0%, 35.3%)
CIE-LABlab(29.31, 48.30, -60.37)
CIE-LCHlch(29.31, 77.32, 308.66°)
OKLaboklab(41.24% 0.0685 -0.1734)
OKLCHoklch(41.24% 0.186 291.6)
XYZxyz(10.9948, 5.9611, 36.1613)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227A5 #7AA527
analogous
#273BA5 #5227A5 #9127A5
triadic
#5227A5 #A55227 #27A552
tetradic
#5227A5 #A5273B #7AA527 #27A591
square
#5227A5 #A5273B #7AA527 #27A591
split-complementary
#5227A5 #A59127 #3BA527
monochromatic
#211042 #391B74 #5227A5 #6D39D0 #916ADC

Accessibility & contrast

On white

9.58
#5227A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5227A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5227A5
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5227A5#FFFFFF#000000##FFFFFF
##5227A51.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#364A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5227a5;
/* rgb */ color: rgb(82, 39, 165);
/* oklch */ color: oklch(41.2% 0.186 291.6);
Tailwind
colors: {
  custom: {
    50: '#8b66c1',
    500: '#5227a5',
    950: '#000000',
  },
}
SCSS
$custom: #5227a5;
$custom-light: #8b66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5227a5",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 260.476,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.41237,
    "c": 0.18641,
    "h": 291.6
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#5227A5
secondary
#A3C266
accent
#E543AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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