#5F45C8#5F45C8

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

Color values

HEX#5F45C8
RGBrgb(95, 69, 200)
HSLhsl(252, 54%, 53%)
HSVhsv(252, 66%, 78%)
CMYKcmyk(52.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(39.34, 44.66, -64.65)
CIE-LCHlch(39.34, 78.58, 304.63°)
OKLaboklab(49.62% 0.0537 -0.1856)
OKLCHoklch(49.62% 0.193 286.1)
XYZxyz(17.2697, 10.8584, 55.8183)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45C8 #AEC845
analogous
#456DC8 #5F45C8 #A045C8
triadic
#5F45C8 #C85F45 #45C85F
tetradic
#5F45C8 #C8456D #AEC845 #45C8A0
square
#5F45C8 #C8456D #AEC845 #45C8A0
split-complementary
#5F45C8 #C8A045 #6DC845
monochromatic
#312171 #462FA0 #5F45C8 #8874D6 #B0A3E4

Accessibility & contrast

On white

6.62
#5F45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45C8
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45C8#FFFFFF#000000##FFFFFF
##5F45C81.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#356680
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f45c8;
/* rgb */ color: rgb(95, 69, 200);
/* oklch */ color: oklch(49.6% 0.193 286.1);
Tailwind
colors: {
  custom: {
    50: '#967ada',
    500: '#5f45c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f45c8;
$custom-light: #967ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45c8",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 251.908,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49619,
    "c": 0.19319,
    "h": 286.1
  },
  "luminance": 0.10859
}

Semantic roles & 50–950 ramp

primary
#5F45C8
secondary
#C6D198
accent
#DE4AC0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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