#5F45D2#5F45D2

#5F45D2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.205 H 284.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5F45D2
RGBrgb(95, 69, 210)
HSLhsl(251, 61%, 55%)
HSVhsv(251, 67%, 82%)
CMYKcmyk(54.8%, 67.1%, 0%, 17.6%)
CIE-LABlab(40.15, 47.62, -69.12)
CIE-LCHlch(40.15, 83.94, 304.57°)
OKLaboklab(50.45% 0.0523 -0.1987)
OKLCHoklch(50.45% 0.205 284.8)
XYZxyz(18.4768, 11.3412, 62.1757)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45D2 #B8D245
analogous
#4571D2 #5F45D2 #A645D2
triadic
#5F45D2 #D25F45 #45D25F
tetradic
#5F45D2 #D24571 #B8D245 #45D2A6
square
#5F45D2 #D24571 #B8D245 #45D2A6
split-complementary
#5F45D2 #D2A645 #71D245
monochromatic
#301F7E #432AAF #5F45D2 #8976DE #B4A8EA

Accessibility & contrast

On white

6.43
#5F45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45D2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45D2#FFFFFF#000000##FFFFFF
##5F45D21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#2B6986
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f45d2;
/* rgb */ color: rgb(95, 69, 210);
/* oklch */ color: oklch(50.5% 0.205 284.8);
Tailwind
colors: {
  custom: {
    50: '#977be1',
    500: '#5f45d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f45d2;
$custom-light: #977be1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45d2",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 251.064,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50452,
    "c": 0.20547,
    "h": 284.8
  },
  "luminance": 0.11342
}

Semantic roles & 50–950 ramp

primary
#5F45D2
secondary
#CCD79C
accent
#E444C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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