#5023B2#5023B2

#5023B2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.205 H 288.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5023B2
RGBrgb(80, 35, 178)
HSLhsl(259, 67%, 42%)
HSVhsv(259, 80%, 70%)
CMYKcmyk(55.1%, 80.3%, 0%, 30.2%)
CIE-LABlab(29.72, 53.38, -67.53)
CIE-LCHlch(29.72, 86.08, 308.33°)
OKLaboklab(41.84% 0.0644 -0.1943)
OKLCHoklch(41.84% 0.205 288.3)
XYZxyz(11.9428, 6.1213, 42.6631)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5023B2 #85B223
analogous
#233EB2 #5023B2 #9823B2
triadic
#5023B2 #B25023 #23B250
tetradic
#5023B2 #B2233E #85B223 #23B298
square
#5023B2 #B2233E #85B223 #23B298
split-complementary
#5023B2 #B29823 #3EB223
monochromatic
#220F4C #39197F #5023B2 #6C3AD8 #926DE2

Accessibility & contrast

On white

9.44
#5023B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5023B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5023B2
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5023B2#FFFFFF#000000##FFFFFF
##5023B21.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#274D6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5023b2;
/* rgb */ color: rgb(80, 35, 178);
/* oklch */ color: oklch(41.8% 0.205 288.3);
Tailwind
colors: {
  custom: {
    50: '#8c65ca',
    500: '#5023b2',
    950: '#000000',
  },
}
SCSS
$custom: #5023b2;
$custom-light: #8c65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5023b2",
  "rgb": {
    "r": 80,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 258.881,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41844,
    "c": 0.20472,
    "h": 288.3
  },
  "luminance": 0.06122
}

Semantic roles & 50–950 ramp

primary
#5023B2
secondary
#AAC968
accent
#EA3EB4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5023B2

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

Preview Lab → · Contrast checker → · Palette generator →

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