#5226C7#5226C7

#5226C7 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.4% C 0.225 H 285.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5226C7
RGBrgb(82, 38, 199)
HSLhsl(256, 68%, 46%)
HSVhsv(256, 81%, 78%)
CMYKcmyk(58.8%, 80.9%, 0%, 22%)
CIE-LABlab(32.49, 58.04, -75.36)
CIE-LCHlch(32.49, 95.12, 307.60°)
OKLaboklab(44.45% 0.0588 -0.2172)
OKLCHoklch(44.45% 0.225 285.2)
XYZxyz(14.4785, 7.3027, 54.6684)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226C7 #9BC726
analogous
#264AC7 #5226C7 #A326C7
triadic
#5226C7 #C75226 #26C752
tetradic
#5226C7 #C7264A #9BC726 #26C7A3
square
#5226C7 #C7264A #9BC726 #26C7A3
split-complementary
#5226C7 #C7A326 #4AC726
monochromatic
#281260 #3D1C94 #5226C7 #744DDD #9D81E7

Accessibility & contrast

On white

8.53
#5226C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5226C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226C7
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226C7#FFFFFF#000000##FFFFFF
##5226C71.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CB
Deuteranopia (green-blind)
#0047C4
Tritanopia (blue-blind)
#085778
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5226c7;
/* rgb */ color: rgb(82, 38, 199);
/* oklch */ color: oklch(44.4% 0.225 285.2);
Tailwind
colors: {
  custom: {
    50: '#9167d9',
    500: '#5226c7',
    950: '#000000',
  },
}
SCSS
$custom: #5226c7;
$custom-light: #9167d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5226c7",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 256.398,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44445,
    "c": 0.22499,
    "h": 285.2
  },
  "luminance": 0.07304
}

Semantic roles & 50–950 ramp

primary
#5226C7
secondary
#B8CF79
accent
#EB3DBB
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #5226C7

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

Preview Lab → · Contrast checker → · Palette generator →

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