#5B239E#5B239E

#5B239E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.183 H 298.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5B239E
RGBrgb(91, 35, 158)
HSLhsl(267, 64%, 38%)
HSVhsv(267, 78%, 62%)
CMYKcmyk(42.4%, 77.8%, 0%, 38%)
CIE-LABlab(29.15, 49.70, -56.36)
CIE-LCHlch(29.15, 75.15, 311.40°)
OKLaboklab(41.17% 0.0875 -0.1612)
OKLCHoklch(41.17% 0.183 298.5)
XYZxyz(11.0854, 5.8947, 32.8949)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B239E #669E23
analogous
#23289E #5B239E #98239E
triadic
#5B239E #9E5B23 #239E5B
tetradic
#5B239E #9E2328 #669E23 #239E98
square
#5B239E #9E2328 #669E23 #239E98
split-complementary
#5B239E #9E9823 #289E23
monochromatic
#210D3A #3E186C #5B239E #782ED0 #9860DC

Accessibility & contrast

On white

9.64
#5B239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B239E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B239E#FFFFFF#000000##FFFFFF
##5B239E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#4A4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b239e;
/* rgb */ color: rgb(91, 35, 158);
/* oklch */ color: oklch(41.2% 0.183 298.5);
Tailwind
colors: {
  custom: {
    50: '#9064bc',
    500: '#5b239e',
    950: '#000000',
  },
}
SCSS
$custom: #5b239e;
$custom-light: #9064bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b239e",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 267.317,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41172,
    "c": 0.18346,
    "h": 298.5
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#5B239E
secondary
#93C15C
accent
#E7419B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B239E

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

Preview Lab → · Contrast checker → · Palette generator →

#5B239E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva