#5F38AF#5F38AF

#5F38AF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.179 H 293.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5F38AF
RGBrgb(95, 56, 175)
HSLhsl(260, 52%, 45%)
HSVhsv(260, 68%, 69%)
CMYKcmyk(45.7%, 68%, 0%, 31.4%)
CIE-LABlab(34.71, 44.64, -57.49)
CIE-LCHlch(34.71, 72.79, 307.83°)
OKLaboklab(45.67% 0.0699 -0.1645)
OKLCHoklch(45.67% 0.179 293)
XYZxyz(13.8692, 8.3560, 41.4312)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F38AF #88AF38
analogous
#384CAF #5F38AF #9A38AF
triadic
#5F38AF #AF5F38 #38AF5F
tetradic
#5F38AF #AF384C #88AF38 #38AF9A
square
#5F38AF #AF384C #88AF38 #38AF9A
split-complementary
#5F38AF #AF9A38 #4CAF38
monochromatic
#2D1A52 #462981 #5F38AF #7F5ACA #A388D9

Accessibility & contrast

On white

7.86
#5F38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F38AF
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F38AF#FFFFFF#000000##FFFFFF
##5F38AF1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#48556F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f38af;
/* rgb */ color: rgb(95, 56, 175);
/* oklch */ color: oklch(45.7% 0.179 293.0);
Tailwind
colors: {
  custom: {
    50: '#9371c8',
    500: '#5f38af',
    950: '#000000',
  },
}
SCSS
$custom: #5f38af;
$custom-light: #9371c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f38af",
  "rgb": {
    "r": 95,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 259.664,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45667,
    "c": 0.17876,
    "h": 293
  },
  "luminance": 0.08356
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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