#5F38AC#5F38AC

#5F38AC is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.175 H 293.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5F38AC
RGBrgb(95, 56, 172)
HSLhsl(260, 51%, 45%)
HSVhsv(260, 67%, 67%)
CMYKcmyk(44.8%, 67.4%, 0%, 32.5%)
CIE-LABlab(34.48, 43.81, -56.09)
CIE-LCHlch(34.48, 71.17, 307.99°)
OKLaboklab(45.42% 0.0703 -0.1604)
OKLCHoklch(45.42% 0.175 293.7)
XYZxyz(13.5779, 8.2394, 39.8967)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38AC #85AC38
analogous
#384BAC #5F38AC #9938AC
triadic
#5F38AC #AC5F38 #38AC5F
tetradic
#5F38AC #AC384B #85AC38 #38AC99
square
#5F38AC #AC384B #85AC38 #38AC99
split-complementary
#5F38AC #AC9938 #4BAC38
monochromatic
#2C1A50 #45297E #5F38AC #7E58C9 #A287D8

Accessibility & contrast

On white

7.93
#5F38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5F38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38AC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38AC#FFFFFF#000000##FFFFFF
##5F38AC1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#49546D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f38ac;
/* rgb */ color: rgb(95, 56, 172);
/* oklch */ color: oklch(45.4% 0.175 293.7);
Tailwind
colors: {
  custom: {
    50: '#9371c6',
    500: '#5f38ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f38ac;
$custom-light: #9371c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38ac",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 260.172,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45423,
    "c": 0.17515,
    "h": 293.7
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#5F38AC
secondary
#ABC27E
accent
#DA4DAB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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