#5726A8#5726A8

#5726A8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.191 H 293.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5726A8
RGBrgb(87, 38, 168)
HSLhsl(263, 63%, 40%)
HSVhsv(263, 77%, 66%)
CMYKcmyk(48.2%, 77.4%, 0%, 34.1%)
CIE-LABlab(30.01, 50.34, -61.02)
CIE-LCHlch(30.01, 79.11, 309.52°)
OKLaboklab(41.94% 0.0761 -0.1751)
OKLCHoklch(41.94% 0.191 293.5)
XYZxyz(11.6895, 6.2392, 37.6266)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726A8 #77A826
analogous
#2636A8 #5726A8 #9826A8
triadic
#5726A8 #A85726 #26A857
tetradic
#5726A8 #A82636 #77A826 #26A898
square
#5726A8 #A82636 #77A826 #26A898
split-complementary
#5726A8 #A89826 #36A826
monochromatic
#230F44 #3D1B76 #5726A8 #7339D2 #966BDE

Accessibility & contrast

On white

9.34
#5726A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5726A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5726A8
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726A8#FFFFFF#000000##FFFFFF
##5726A81.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#3E4A66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5726a8;
/* rgb */ color: rgb(87, 38, 168);
/* oklch */ color: oklch(41.9% 0.191 293.5);
Tailwind
colors: {
  custom: {
    50: '#8f66c3',
    500: '#5726a8',
    950: '#000000',
  },
}
SCSS
$custom: #5726a8;
$custom-light: #8f66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5726a8",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 262.615,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4194,
    "c": 0.19092,
    "h": 293.5
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#5726A8
secondary
#A0C466
accent
#E642A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5726A8

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

Preview Lab → · Contrast checker → · Palette generator →

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