#5726AF#5726AF

#5726AF is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.199 H 291.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5726AF
RGBrgb(87, 38, 175)
HSLhsl(261, 64%, 42%)
HSVhsv(261, 78%, 69%)
CMYKcmyk(50.3%, 78.3%, 0%, 31.4%)
CIE-LABlab(30.66, 52.20, -64.16)
CIE-LCHlch(30.66, 82.71, 309.13°)
OKLaboklab(42.59% 0.0741 -0.1843)
OKLCHoklch(42.59% 0.199 291.9)
XYZxyz(12.3593, 6.5071, 41.1539)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726AF #7EAF26
analogous
#263AAF #5726AF #9C26AF
triadic
#5726AF #AF5726 #26AF57
tetradic
#5726AF #AF263A #7EAF26 #26AF9C
square
#5726AF #AF263A #7EAF26 #26AF9C
split-complementary
#5726AF #AF9C26 #3AAF26
monochromatic
#25104A #3E1B7D #5726AF #743DD5 #9870E0

Accessibility & contrast

On white

9.12
#5726AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5726AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5726AF
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726AF#FFFFFF#000000##FFFFFF
##5726AF1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#394D6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5726af;
/* rgb */ color: rgb(87, 38, 175);
/* oklch */ color: oklch(42.6% 0.199 291.9);
Tailwind
colors: {
  custom: {
    50: '#9066c8',
    500: '#5726af',
    950: '#000000',
  },
}
SCSS
$custom: #5726af;
$custom-light: #9066c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5726af",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 261.46,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42591,
    "c": 0.19861,
    "h": 291.9
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#5726AF
secondary
#A6C76A
accent
#E740AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5726AF

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

Preview Lab → · Contrast checker → · Palette generator →

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