#5F45AF#5F45AF

#5F45AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.7% C 0.161 H 290.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5F45AF
RGBrgb(95, 69, 175)
HSLhsl(255, 43%, 48%)
HSVhsv(255, 61%, 69%)
CMYKcmyk(45.7%, 60.6%, 0%, 31.4%)
CIE-LABlab(37.45, 37.28, -53.05)
CIE-LCHlch(37.45, 64.84, 305.10°)
OKLaboklab(47.65% 0.0558 -0.1515)
OKLCHoklch(47.65% 0.161 290.2)
XYZxyz(14.5831, 9.7838, 41.6692)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45AF #95AF45
analogous
#4560AF #5F45AF #9445AF
triadic
#5F45AF #AF5F45 #45AF5F
tetradic
#5F45AF #AF4560 #95AF45 #45AF94
square
#5F45AF #AF4560 #95AF45 #45AF94
split-complementary
#5F45AF #AF9445 #60AF45
monochromatic
#2F2257 #473483 #5F45AF #826CC5 #A798D6

Accessibility & contrast

On white

7.10
#5F45AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F45AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F45AF
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45AF#FFFFFF#000000##FFFFFF
##5F45AF1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#475D73
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f45af;
/* rgb */ color: rgb(95, 69, 175);
/* oklch */ color: oklch(47.7% 0.161 290.2);
Tailwind
colors: {
  custom: {
    50: '#927ac8',
    500: '#5f45af',
    950: '#000000',
  },
}
SCSS
$custom: #5f45af;
$custom-light: #927ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45af",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 254.717,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47651,
    "c": 0.16141,
    "h": 290.2
  },
  "luminance": 0.09784
}

Semantic roles & 50–950 ramp

primary
#5F45AF
secondary
#B5C28D
accent
#D355B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5F45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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