#5F43CB#5F43CB

#5F43CB is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.199 H 286.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5F43CB
RGBrgb(95, 67, 203)
HSLhsl(252, 57%, 53%)
HSVhsv(252, 67%, 80%)
CMYKcmyk(53.2%, 67%, 0%, 20.4%)
CIE-LABlab(39.17, 46.66, -66.67)
CIE-LCHlch(39.17, 81.38, 304.99°)
OKLaboklab(49.57% 0.0551 -0.1915)
OKLCHoklch(49.57% 0.199 286.1)
XYZxyz(17.5027, 10.7581, 57.6426)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43CB #AFCB43
analogous
#436BCB #5F43CB #A343CB
triadic
#5F43CB #CB5F43 #43CB5F
tetradic
#5F43CB #CB436B #AFCB43 #43CBA3
square
#5F43CB #CB436B #AFCB43 #43CBA3
split-complementary
#5F43CB #CBA343 #6BCB43
monochromatic
#312074 #462DA4 #5F43CB #8873D8 #B1A3E6

Accessibility & contrast

On white

6.66
#5F43CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5F43CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43CB
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43CB#FFFFFF#000000##FFFFFF
##5F43CB1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#336581
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f43cb;
/* rgb */ color: rgb(95, 67, 203);
/* oklch */ color: oklch(49.6% 0.199 286.1);
Tailwind
colors: {
  custom: {
    50: '#9679dc',
    500: '#5f43cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f43cb;
$custom-light: #9679dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43cb",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 203
  },
  "hsl": {
    "h": 252.353,
    "s": 56.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4957,
    "c": 0.19929,
    "h": 286.1
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#5F43CB
secondary
#C6D298
accent
#E048C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F43CB

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

Preview Lab → · Contrast checker → · Palette generator →

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