#5227CA#5227CA

#5227CA is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.8% C 0.227 H 284.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5227CA
RGBrgb(82, 39, 202)
HSLhsl(256, 68%, 47%)
HSVhsv(256, 81%, 79%)
CMYKcmyk(59.4%, 80.7%, 0%, 20.8%)
CIE-LABlab(32.94, 58.44, -76.37)
CIE-LCHlch(32.94, 96.17, 307.42°)
OKLaboklab(44.85% 0.0573 -0.2201)
OKLCHoklch(44.85% 0.227 284.6)
XYZxyz(14.8626, 7.5082, 56.5317)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5227CA #9FCA27
analogous
#274ECA #5227CA #A327CA
triadic
#5227CA #CA5227 #27CA52
tetradic
#5227CA #CA274E #9FCA27 #27CAA3
square
#5227CA #CA274E #9FCA27 #27CAA3
split-complementary
#5227CA #CAA327 #4ECA27
monochromatic
#281363 #3D1D97 #5227CA #7651DD #9E84E7

Accessibility & contrast

On white

8.39
#5227CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5227CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5227CA
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5227CA#FFFFFF#000000##FFFFFF
##5227CA1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0048C7
Tritanopia (blue-blind)
#00597A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5227ca;
/* rgb */ color: rgb(82, 39, 202);
/* oklch */ color: oklch(44.8% 0.227 284.6);
Tailwind
colors: {
  custom: {
    50: '#9168dc',
    500: '#5227ca',
    950: '#000000',
  },
}
SCSS
$custom: #5227ca;
$custom-light: #9168dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5227ca",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 255.828,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44847,
    "c": 0.22745,
    "h": 284.6
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#5227CA
secondary
#BAD07C
accent
#EB3DBD
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5227CA

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

Preview Lab → · Contrast checker → · Palette generator →

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