#5F45BE#5F45BE

#5F45BE is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.181 H 287.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5F45BE
RGBrgb(95, 69, 190)
HSLhsl(253, 48%, 51%)
HSVhsv(253, 64%, 75%)
CMYKcmyk(50%, 63.7%, 0%, 25.5%)
CIE-LABlab(38.56, 41.69, -60.09)
CIE-LCHlch(38.56, 73.14, 304.76°)
OKLaboklab(48.81% 0.0547 -0.1722)
OKLCHoklch(48.81% 0.181 287.6)
XYZxyz(16.1390, 10.4061, 49.8634)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45BE #A4BE45
analogous
#4567BE #5F45BE #9C45BE
triadic
#5F45BE #BE5F45 #45BE5F
tetradic
#5F45BE #BE4567 #A4BE45 #45BE9C
square
#5F45BE #BE4567 #A4BE45 #45BE9C
split-complementary
#5F45BE #BE9C45 #67BE45
monochromatic
#322365 #483393 #5F45BE #8672CE #ADA0DE

Accessibility & contrast

On white

6.82
#5F45BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5F45BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45BE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45BE#FFFFFF#000000##FFFFFF
##5F45BE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#3D627B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f45be;
/* rgb */ color: rgb(95, 69, 190);
/* oklch */ color: oklch(48.8% 0.181 287.6);
Tailwind
colors: {
  custom: {
    50: '#947ad2',
    500: '#5f45be',
    950: '#000000',
  },
}
SCSS
$custom: #5f45be;
$custom-light: #947ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45be",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 252.893,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48811,
    "c": 0.18067,
    "h": 287.6
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#5F45BE
secondary
#BFCA95
accent
#D850BB
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F45BE

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

Preview Lab → · Contrast checker → · Palette generator →

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