#5226AF#5226AF

#5226AF is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.199 H 289.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5226AF
RGBrgb(82, 38, 175)
HSLhsl(259, 64%, 42%)
HSVhsv(259, 78%, 69%)
CMYKcmyk(53.1%, 78.3%, 0%, 31.4%)
CIE-LABlab(30.10, 51.51, -65.10)
CIE-LCHlch(30.10, 83.02, 308.35°)
OKLaboklab(42.07% 0.0664 -0.1872)
OKLCHoklch(42.07% 0.199 289.5)
XYZxyz(11.9084, 6.2747, 41.1328)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5226AF #83AF26
analogous
#263FAF #5226AF #9726AF
triadic
#5226AF #AF5226 #26AF52
tetradic
#5226AF #AF263F #83AF26 #26AF97
square
#5226AF #AF263F #83AF26 #26AF97
split-complementary
#5226AF #AF9726 #3FAF26
monochromatic
#23104A #3A1B7D #5226AF #6E3DD5 #9470E0

Accessibility & contrast

On white

9.31
#5226AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5226AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5226AF
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5226AF#FFFFFF#000000##FFFFFF
##5226AF1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#2E4D6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5226af;
/* rgb */ color: rgb(82, 38, 175);
/* oklch */ color: oklch(42.1% 0.199 289.5);
Tailwind
colors: {
  custom: {
    50: '#8d66c8',
    500: '#5226af',
    950: '#000000',
  },
}
SCSS
$custom: #5226af;
$custom-light: #8d66c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5226af",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 259.27,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.19863,
    "h": 289.5
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#5226AF
secondary
#A9C76A
accent
#E740B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5226AF

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

Preview Lab → · Contrast checker → · Palette generator →

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