#5B43CC#5B43CC

#5B43CC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.3% C 0.201 H 284.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5B43CC
RGBrgb(91, 67, 204)
HSLhsl(251, 57%, 53%)
HSVhsv(251, 67%, 80%)
CMYKcmyk(55.4%, 67.2%, 0%, 20%)
CIE-LABlab(38.89, 46.30, -67.72)
CIE-LCHlch(38.89, 82.03, 304.36°)
OKLaboklab(49.31% 0.0495 -0.1947)
OKLCHoklch(49.31% 0.201 284.3)
XYZxyz(17.2173, 10.5971, 58.2532)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B43CC #B4CC43
analogous
#436FCC #5B43CC #9F43CC
triadic
#5B43CC #CC5B43 #43CC5B
tetradic
#5B43CC #CC436F #B4CC43 #43CC9F
square
#5B43CC #CC436F #B4CC43 #43CC9F
split-complementary
#5B43CC #CC9F43 #6FCC43
monochromatic
#2F2075 #422DA5 #5B43CC #8573D9 #AFA3E6

Accessibility & contrast

On white

6.73
#5B43CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5B43CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B43CC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B43CC#FFFFFF#000000##FFFFFF
##5B43CC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#266682
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b43cc;
/* rgb */ color: rgb(91, 67, 204);
/* oklch */ color: oklch(49.3% 0.201 284.3);
Tailwind
colors: {
  custom: {
    50: '#9479dd',
    500: '#5b43cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b43cc;
$custom-light: #9479dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b43cc",
  "rgb": {
    "r": 91,
    "g": 67,
    "b": 204
  },
  "hsl": {
    "h": 250.511,
    "s": 57.322,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49309,
    "c": 0.20092,
    "h": 284.3
  },
  "luminance": 0.10598
}

Semantic roles & 50–950 ramp

primary
#5B43CC
secondary
#C9D398
accent
#E147C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B43CC

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

Preview Lab → · Contrast checker → · Palette generator →

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