#5823B2#5823B2

#5823B2 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.7% C 0.205 H 292.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5823B2
RGBrgb(88, 35, 178)
HSLhsl(262, 67%, 42%)
HSVhsv(262, 80%, 70%)
CMYKcmyk(50.6%, 80.3%, 0%, 30.2%)
CIE-LABlab(30.62, 54.40, -66.01)
CIE-LCHlch(30.62, 85.54, 309.49°)
OKLaboklab(42.68% 0.0768 -0.1896)
OKLCHoklch(42.68% 0.205 292.1)
XYZxyz(12.6591, 6.4906, 42.6967)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5823B2 #7DB223
analogous
#2335B2 #5823B2 #A023B2
triadic
#5823B2 #B25823 #23B258
tetradic
#5823B2 #B22335 #7DB223 #23B2A0
square
#5823B2 #B22335 #7DB223 #23B2A0
split-complementary
#5823B2 #B2A023 #35B223
monochromatic
#250F4C #3F197F #5823B2 #753AD8 #996DE2

Accessibility & contrast

On white

9.14
#5823B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5823B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5823B2
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5823B2#FFFFFF#000000##FFFFFF
##5823B21.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#3A4D6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5823b2;
/* rgb */ color: rgb(88, 35, 178);
/* oklch */ color: oklch(42.7% 0.205 292.1);
Tailwind
colors: {
  custom: {
    50: '#9165ca',
    500: '#5823b2',
    950: '#000000',
  },
}
SCSS
$custom: #5823b2;
$custom-light: #9165ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5823b2",
  "rgb": {
    "r": 88,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 262.238,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42677,
    "c": 0.2046,
    "h": 292.1
  },
  "luminance": 0.06491
}

Semantic roles & 50–950 ramp

primary
#5823B2
secondary
#A5C968
accent
#EA3EAA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5823B2

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

Preview Lab → · Contrast checker → · Palette generator →

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