#5F38CD#5F38CD

#5F38CD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.214 H 287.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5F38CD
RGBrgb(95, 56, 205)
HSLhsl(256, 60%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(53.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.24, 53.05, -70.99)
CIE-LCHlch(37.24, 88.62, 306.77°)
OKLaboklab(48.25% 0.0642 -0.2041)
OKLCHoklch(48.25% 0.214 287.4)
XYZxyz(17.1497, 9.6681, 58.7083)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38CD #A6CD38
analogous
#385BCD #5F38CD #A938CD
triadic
#5F38CD #CD5F38 #38CD5F
tetradic
#5F38CD #CD385B #A6CD38 #38CDA9
square
#5F38CD #CD385B #A6CD38 #38CDA9
split-complementary
#5F38CD #CDA938 #5BCD38
monochromatic
#321C6F #4728A0 #5F38CD #8669D9 #AE9AE6

Accessibility & contrast

On white

7.16
#5F38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38CD
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38CD#FFFFFF#000000##FFFFFF
##5F38CD1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#32607F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f38cd;
/* rgb */ color: rgb(95, 56, 205);
/* oklch */ color: oklch(48.2% 0.214 287.4);
Tailwind
colors: {
  custom: {
    50: '#9772dd',
    500: '#5f38cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f38cd;
$custom-light: #9772dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38cd",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 255.705,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48246,
    "c": 0.21399,
    "h": 287.4
  },
  "luminance": 0.09669
}

Semantic roles & 50–950 ramp

primary
#5F38CD
secondary
#C0D18F
accent
#E345BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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