#5F4BBC#5F4BBC

#5F4BBC is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.6% C 0.170 H 286.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5F4BBC
RGBrgb(95, 75, 188)
HSLhsl(251, 46%, 52%)
HSVhsv(251, 60%, 74%)
CMYKcmyk(49.5%, 60.1%, 0%, 26.3%)
CIE-LABlab(39.74, 37.59, -57.00)
CIE-LCHlch(39.74, 68.28, 303.40°)
OKLaboklab(49.62% 0.0485 -0.1631)
OKLCHoklch(49.62% 0.17 286.6)
XYZxyz(16.3098, 11.0951, 48.8494)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BBC #A8BC4B
analogous
#4B70BC #5F4BBC #974BBC
triadic
#5F4BBC #BC5F4B #4BBC5F
tetradic
#5F4BBC #BC4B70 #A8BC4B #4BBC97
square
#5F4BBC #BC4B70 #A8BC4B #4BBC97
split-complementary
#5F4BBC #BC974B #70BC4B
monochromatic
#322666 #473793 #5F4BBC #8778CD #AEA4DD

Accessibility & contrast

On white

6.52
#5F4BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5F4BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BBC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BBC#FFFFFF#000000##FFFFFF
##5F4BBC1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#3E657C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f4bbc;
/* rgb */ color: rgb(95, 75, 188);
/* oklch */ color: oklch(49.6% 0.170 286.6);
Tailwind
colors: {
  custom: {
    50: '#947ed1',
    500: '#5f4bbc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bbc;
$custom-light: #947ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bbc",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 188
  },
  "hsl": {
    "h": 250.619,
    "s": 45.749,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49624,
    "c": 0.17015,
    "h": 286.6
  },
  "luminance": 0.11096
}

Semantic roles & 50–950 ramp

primary
#5F4BBC
secondary
#C1CA99
accent
#D552BE
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F4BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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