#5B38CD#5B38CD

#5B38CD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.214 H 285.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5B38CD
RGBrgb(91, 56, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 73%, 80%)
CMYKcmyk(55.6%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.85, 52.48, -71.64)
CIE-LCHlch(36.85, 88.80, 306.22°)
OKLaboklab(47.88% 0.0584 -0.2062)
OKLCHoklch(47.88% 0.214 285.8)
XYZxyz(16.7447, 9.4593, 58.6893)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38CD #AACD38
analogous
#385FCD #5B38CD #A538CD
triadic
#5B38CD #CD5B38 #38CD5B
tetradic
#5B38CD #CD385F #AACD38 #38CDA5
square
#5B38CD #CD385F #AACD38 #38CDA5
split-complementary
#5B38CD #CDA538 #5FCD38
monochromatic
#2F1C6F #4428A0 #5B38CD #8369D9 #AC9AE6

Accessibility & contrast

On white

7.26
#5B38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38CD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38CD#FFFFFF#000000##FFFFFF
##5B38CD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#26617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b38cd;
/* rgb */ color: rgb(91, 56, 205);
/* oklch */ color: oklch(47.9% 0.214 285.8);
Tailwind
colors: {
  custom: {
    50: '#9572dd',
    500: '#5b38cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b38cd;
$custom-light: #9572dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38cd",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 254.094,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47881,
    "c": 0.21429,
    "h": 285.8
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#5B38CD
secondary
#C2D18F
accent
#E345BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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