#5F4BBD#5F4BBD

#5F4BBD is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.7% C 0.171 H 286.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5F4BBD
RGBrgb(95, 75, 189)
HSLhsl(251, 46%, 52%)
HSVhsv(251, 60%, 74%)
CMYKcmyk(49.7%, 60.3%, 0%, 25.9%)
CIE-LABlab(39.81, 37.89, -57.47)
CIE-LCHlch(39.81, 68.84, 303.40°)
OKLaboklab(49.7% 0.0485 -0.1645)
OKLCHoklch(49.7% 0.171 286.4)
XYZxyz(16.4180, 11.1384, 49.4191)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BBD #A9BD4B
analogous
#4B70BD #5F4BBD #984BBD
triadic
#5F4BBD #BD5F4B #4BBD5F
tetradic
#5F4BBD #BD4B70 #A9BD4B #4BBD98
square
#5F4BBD #BD4B70 #A9BD4B #4BBD98
split-complementary
#5F4BBD #BD984B #70BD4B
monochromatic
#322668 #473694 #5F4BBD #8778CD #AFA5DE

Accessibility & contrast

On white

6.51
#5F4BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5F4BBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BBD
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BBD#FFFFFF#000000##FFFFFF
##5F4BBD1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#3D667D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f4bbd;
/* rgb */ color: rgb(95, 75, 189);
/* oklch */ color: oklch(49.7% 0.171 286.4);
Tailwind
colors: {
  custom: {
    50: '#947ed2',
    500: '#5f4bbd',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bbd;
$custom-light: #947ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bbd",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 189
  },
  "hsl": {
    "h": 250.526,
    "s": 46.341,
    "l": 51.765
  },
  "oklch": {
    "l": 0.497,
    "c": 0.17147,
    "h": 286.4
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

primary
#5F4BBD
secondary
#C2CB99
accent
#D652BF
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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