#5B238F#5B238F

#5B238F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.167 H 303.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5B238F
RGBrgb(91, 35, 143)
HSLhsl(271, 61%, 35%)
HSVhsv(271, 76%, 56%)
CMYKcmyk(36.4%, 75.5%, 0%, 43.9%)
CIE-LABlab(27.87, 45.94, -49.24)
CIE-LCHlch(27.87, 67.34, 313.01°)
OKLaboklab(39.88% 0.0912 -0.1403)
OKLCHoklch(39.88% 0.167 303)
XYZxyz(9.8722, 5.4094, 26.5053)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B238F #578F23
analogous
#25238F #5B238F #8F238D
triadic
#5B238F #8F5B23 #238F5B
tetradic
#5B238F #8F2523 #578F23 #238D8F
square
#5B238F #8F2523 #578F23 #238D8F
split-complementary
#5B238F #8D8F23 #238F25
monochromatic
#1C0B2D #3C175E #5B238F #7A2FC0 #9957D6

Accessibility & contrast

On white

10.09
#5B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B238F
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B238F#FFFFFF#000000##FFFFFF
##5B238F1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#503E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b238f;
/* rgb */ color: rgb(91, 35, 143);
/* oklch */ color: oklch(39.9% 0.167 303.0);
Tailwind
colors: {
  custom: {
    50: '#8e64b1',
    500: '#5b238f',
    950: '#000000',
  },
}
SCSS
$custom: #5b238f;
$custom-light: #8e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b238f",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 271.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3988,
    "c": 0.16736,
    "h": 303
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#5B238F
secondary
#85BA54
accent
#E44491
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B238F

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

Preview Lab → · Contrast checker → · Palette generator →

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