#5F43CA#5F43CA

#5F43CA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.198 H 286.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5F43CA
RGBrgb(95, 67, 202)
HSLhsl(252, 56%, 53%)
HSVhsv(252, 67%, 79%)
CMYKcmyk(53%, 66.8%, 0%, 20.8%)
CIE-LABlab(39.09, 46.37, -66.22)
CIE-LCHlch(39.09, 80.84, 305.00°)
OKLaboklab(49.49% 0.0553 -0.1902)
OKLCHoklch(49.49% 0.198 286.2)
XYZxyz(17.3840, 10.7106, 57.0170)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43CA #AECA43
analogous
#436BCA #5F43CA #A243CA
triadic
#5F43CA #CA5F43 #43CA5F
tetradic
#5F43CA #CA436B #AECA43 #43CAA2
square
#5F43CA #CA436B #AECA43 #43CAA2
split-complementary
#5F43CA #CAA243 #6BCA43
monochromatic
#312072 #462EA2 #5F43CA #8873D7 #B0A2E5

Accessibility & contrast

On white

6.68
#5F43CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F43CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43CA
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43CA#FFFFFF#000000##FFFFFF
##5F43CA1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#346581
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f43ca;
/* rgb */ color: rgb(95, 67, 202);
/* oklch */ color: oklch(49.5% 0.198 286.2);
Tailwind
colors: {
  custom: {
    50: '#9679db',
    500: '#5f43ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f43ca;
$custom-light: #9679db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43ca",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 202
  },
  "hsl": {
    "h": 252.444,
    "s": 56.017,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49487,
    "c": 0.19807,
    "h": 286.2
  },
  "luminance": 0.10711
}

Semantic roles & 50–950 ramp

primary
#5F43CA
secondary
#C6D297
accent
#DF48C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F43CA

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

Preview Lab → · Contrast checker → · Palette generator →

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