#5F38C8#5F38C8

#5F38C8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.208 H 288.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5F38C8
RGBrgb(95, 56, 200)
HSLhsl(256, 57%, 50%)
HSVhsv(256, 72%, 78%)
CMYKcmyk(52.5%, 72%, 0%, 21.6%)
CIE-LABlab(36.80, 51.65, -68.80)
CIE-LCHlch(36.80, 86.03, 306.89°)
OKLaboklab(47.8% 0.0653 -0.1977)
OKLCHoklch(47.8% 0.208 288.3)
XYZxyz(16.5558, 9.4306, 55.5803)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38C8 #A1C838
analogous
#3859C8 #5F38C8 #A738C8
triadic
#5F38C8 #C85F38 #38C85F
tetradic
#5F38C8 #C83859 #A1C838 #38C8A7
square
#5F38C8 #C83859 #A1C838 #38C8A7
split-complementary
#5F38C8 #C8A738 #59C838
monochromatic
#311D69 #482A99 #5F38C8 #8668D5 #AC98E3

Accessibility & contrast

On white

7.28
#5F38C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F38C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38C8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38C8#FFFFFF#000000##FFFFFF
##5F38C81.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#365E7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f38c8;
/* rgb */ color: rgb(95, 56, 200);
/* oklch */ color: oklch(47.8% 0.208 288.3);
Tailwind
colors: {
  custom: {
    50: '#9772da',
    500: '#5f38c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f38c8;
$custom-light: #9772da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38c8",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 256.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.478,
    "c": 0.20823,
    "h": 288.3
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#5F38C8
secondary
#BDCE8E
accent
#E048B7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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