#5F43CC#5F43CC

#5F43CC is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.7% C 0.201 H 285.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5F43CC
RGBrgb(95, 67, 204)
HSLhsl(252, 57%, 53%)
HSVhsv(252, 67%, 80%)
CMYKcmyk(53.4%, 67.2%, 0%, 20%)
CIE-LABlab(39.25, 46.96, -67.12)
CIE-LCHlch(39.25, 81.91, 304.98°)
OKLaboklab(49.66% 0.055 -0.1928)
OKLCHoklch(49.66% 0.201 285.9)
XYZxyz(17.6223, 10.8059, 58.2722)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43CC #B0CC43
analogous
#436BCC #5F43CC #A343CC
triadic
#5F43CC #CC5F43 #43CC5F
tetradic
#5F43CC #CC436B #B0CC43 #43CCA3
square
#5F43CC #CC436B #B0CC43 #43CCA3
split-complementary
#5F43CC #CCA343 #6BCC43
monochromatic
#312075 #452DA5 #5F43CC #8873D9 #B1A3E6

Accessibility & contrast

On white

6.64
#5F43CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5F43CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43CC
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43CC#FFFFFF#000000##FFFFFF
##5F43CC1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f43cc;
/* rgb */ color: rgb(95, 67, 204);
/* oklch */ color: oklch(49.7% 0.201 285.9);
Tailwind
colors: {
  custom: {
    50: '#9679dd',
    500: '#5f43cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f43cc;
$custom-light: #9679dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43cc",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 204
  },
  "hsl": {
    "h": 252.263,
    "s": 57.322,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49655,
    "c": 0.20051,
    "h": 285.9
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#5F43CC
secondary
#C7D398
accent
#E147C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F43CC

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

Preview Lab → · Contrast checker → · Palette generator →

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