#5823B1#5823B1

#5823B1 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.6% C 0.204 H 292.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5823B1
RGBrgb(88, 35, 177)
HSLhsl(262, 67%, 42%)
HSVhsv(262, 80%, 69%)
CMYKcmyk(50.3%, 80.2%, 0%, 30.6%)
CIE-LABlab(30.52, 54.14, -65.57)
CIE-LCHlch(30.52, 85.04, 309.55°)
OKLaboklab(42.58% 0.0772 -0.1883)
OKLCHoklch(42.58% 0.204 292.3)
XYZxyz(12.5591, 6.4506, 42.1698)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5823B1 #7CB123
analogous
#2335B1 #5823B1 #9F23B1
triadic
#5823B1 #B15823 #23B158
tetradic
#5823B1 #B12335 #7CB123 #23B19F
square
#5823B1 #B12335 #7CB123 #23B19F
split-complementary
#5823B1 #B19F23 #35B123
monochromatic
#250F4B #3F197E #5823B1 #7439D8 #986CE2

Accessibility & contrast

On white

9.17
#5823B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5823B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5823B1
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5823B1#FFFFFF#000000##FFFFFF
##5823B11.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5823b1;
/* rgb */ color: rgb(88, 35, 177);
/* oklch */ color: oklch(42.6% 0.204 292.3);
Tailwind
colors: {
  custom: {
    50: '#9165c9',
    500: '#5823b1',
    950: '#000000',
  },
}
SCSS
$custom: #5823b1;
$custom-light: #9165c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5823b1",
  "rgb": {
    "r": 88,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 262.394,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42581,
    "c": 0.20354,
    "h": 292.3
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#5823B1
secondary
#A4C868
accent
#EA3EAA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5823B1

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

Preview Lab → · Contrast checker → · Palette generator →

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