#5F38AE#5F38AE

#5F38AE is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.178 H 293.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5F38AE
RGBrgb(95, 56, 174)
HSLhsl(260, 51%, 45%)
HSVhsv(260, 68%, 68%)
CMYKcmyk(45.4%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.63, 44.36, -57.02)
CIE-LCHlch(34.63, 72.25, 307.88°)
OKLaboklab(45.59% 0.07 -0.1632)
OKLCHoklch(45.59% 0.178 293.2)
XYZxyz(13.7714, 8.3168, 40.9159)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38AE #87AE38
analogous
#384CAE #5F38AE #9A38AE
triadic
#5F38AE #AE5F38 #38AE5F
tetradic
#5F38AE #AE384C #87AE38 #38AE9A
square
#5F38AE #AE384C #87AE38 #38AE9A
split-complementary
#5F38AE #AE9A38 #4CAE38
monochromatic
#2C1A51 #462980 #5F38AE #7F59CA #A288D9

Accessibility & contrast

On white

7.88
#5F38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38AE
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38AE#FFFFFF#000000##FFFFFF
##5F38AE1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#48556E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f38ae;
/* rgb */ color: rgb(95, 56, 174);
/* oklch */ color: oklch(45.6% 0.178 293.2);
Tailwind
colors: {
  custom: {
    50: '#9371c7',
    500: '#5f38ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f38ae;
$custom-light: #9371c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38ae",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 259.831,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45585,
    "c": 0.17756,
    "h": 293.2
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#5F38AE
secondary
#ACC37F
accent
#DB4DAC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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