#5723B1#5723B1

#5723B1 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.5% C 0.204 H 291.8°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5723B1
RGBrgb(87, 35, 177)
HSLhsl(262, 67%, 42%)
HSVhsv(262, 80%, 69%)
CMYKcmyk(50.8%, 80.2%, 0%, 30.6%)
CIE-LABlab(30.41, 54.01, -65.77)
CIE-LCHlch(30.41, 85.11, 309.39°)
OKLaboklab(42.47% 0.0756 -0.189)
OKLCHoklch(42.47% 0.204 291.8)
XYZxyz(12.4651, 6.4021, 42.1654)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5723B1 #7DB123
analogous
#2336B1 #5723B1 #9E23B1
triadic
#5723B1 #B15723 #23B157
tetradic
#5723B1 #B12336 #7DB123 #23B19E
square
#5723B1 #B12336 #7DB123 #23B19E
split-complementary
#5723B1 #B19E23 #36B123
monochromatic
#250F4B #3E197E #5723B1 #7339D8 #976CE2

Accessibility & contrast

On white

9.21
#5723B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5723B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5723B1
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5723B1#FFFFFF#000000##FFFFFF
##5723B11.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#384C6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5723b1;
/* rgb */ color: rgb(87, 35, 177);
/* oklch */ color: oklch(42.5% 0.204 291.8);
Tailwind
colors: {
  custom: {
    50: '#9065ca',
    500: '#5723b1',
    950: '#000000',
  },
}
SCSS
$custom: #5723b1;
$custom-light: #9065ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5723b1",
  "rgb": {
    "r": 87,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 261.972,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42474,
    "c": 0.20353,
    "h": 291.8
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#5723B1
secondary
#A5C868
accent
#EA3EAB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5723B1

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

Preview Lab → · Contrast checker → · Palette generator →

#5723B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva