#5F38D0#5F38D0

#5F38D0 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.217 H 287.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F38D0
RGBrgb(95, 56, 208)
HSLhsl(255, 62%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(54.3%, 73.1%, 0%, 18.4%)
CIE-LABlab(37.51, 53.90, -72.29)
CIE-LCHlch(37.51, 90.17, 306.71°)
OKLaboklab(48.52% 0.0635 -0.208)
OKLCHoklch(48.52% 0.217 287)
XYZxyz(17.5153, 9.8144, 60.6337)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38D0 #A9D038
analogous
#385DD0 #5F38D0 #AB38D0
triadic
#5F38D0 #D05F38 #38D05F
tetradic
#5F38D0 #D0385D #A9D038 #38D0AB
square
#5F38D0 #D0385D #A9D038 #38D0AB
split-complementary
#5F38D0 #D0AB38 #5DD038
monochromatic
#321B73 #4727A4 #5F38D0 #876ADC #AF9BE7

Accessibility & contrast

On white

7.09
#5F38D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F38D0
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38D0#FFFFFF#000000##FFFFFF
##5F38D01.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD4
Deuteranopia (green-blind)
#0054CD
Tritanopia (blue-blind)
#2F6281
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f38d0;
/* rgb */ color: rgb(95, 56, 208);
/* oklch */ color: oklch(48.5% 0.217 287.0);
Tailwind
colors: {
  custom: {
    50: '#9873e0',
    500: '#5f38d0',
    950: '#000000',
  },
}
SCSS
$custom: #5f38d0;
$custom-light: #9873e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38d0",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 255.395,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.21743,
    "h": 287
  },
  "luminance": 0.09815
}

Semantic roles & 50–950 ramp

primary
#5F38D0
secondary
#C2D391
accent
#E543BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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