#5226CA#5226CA

#5226CA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.8% C 0.228 H 284.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5226CA
RGBrgb(82, 38, 202)
HSLhsl(256, 68%, 47%)
HSVhsv(256, 81%, 79%)
CMYKcmyk(59.4%, 81.2%, 0%, 20.8%)
CIE-LABlab(32.80, 58.85, -76.61)
CIE-LCHlch(32.80, 96.60, 307.53°)
OKLaboklab(44.75% 0.0578 -0.2208)
OKLCHoklch(44.75% 0.228 284.7)
XYZxyz(14.8302, 7.4434, 56.5209)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226CA #9ECA26
analogous
#264CCA #5226CA #A426CA
triadic
#5226CA #CA5226 #26CA52
tetradic
#5226CA #CA264C #9ECA26 #26CAA4
square
#5226CA #CA264C #9ECA26 #26CAA4
split-complementary
#5226CA #CAA426 #4CCA26
monochromatic
#281363 #3D1C96 #5226CA #764FDE #9E83E8

Accessibility & contrast

On white

8.44
#5226CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5226CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226CA
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226CA#FFFFFF#000000##FFFFFF
##5226CA1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5226ca;
/* rgb */ color: rgb(82, 38, 202);
/* oklch */ color: oklch(44.8% 0.228 284.7);
Tailwind
colors: {
  custom: {
    50: '#9168dc',
    500: '#5226ca',
    950: '#000000',
  },
}
SCSS
$custom: #5226ca;
$custom-light: #9168dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5226ca",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 202
  },
  "hsl": {
    "h": 256.098,
    "s": 68.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.22824,
    "h": 284.7
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#5226CA
secondary
#BAD17B
accent
#EB3DBC
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5226CA

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

Preview Lab → · Contrast checker → · Palette generator →

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