#5F4BBB#5F4BBB

#5F4BBB is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.5% C 0.169 H 286.7°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5F4BBB
RGBrgb(95, 75, 187)
HSLhsl(251, 45%, 51%)
HSVhsv(251, 60%, 73%)
CMYKcmyk(49.2%, 59.9%, 0%, 26.7%)
CIE-LABlab(39.67, 37.29, -56.53)
CIE-LCHlch(39.67, 67.72, 303.41°)
OKLaboklab(49.55% 0.0486 -0.1617)
OKLCHoklch(49.55% 0.169 286.7)
XYZxyz(16.2024, 11.0522, 48.2836)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BBB #A7BB4B
analogous
#4B6FBB #5F4BBB #974BBB
triadic
#5F4BBB #BB5F4B #4BBB5F
tetradic
#5F4BBB #BB4B6F #A7BB4B #4BBB97
square
#5F4BBB #BB4B6F #A7BB4B #4BBB97
split-complementary
#5F4BBB #BB974B #6FBB4B
monochromatic
#322665 #473792 #5F4BBB #8677CC #AEA4DD

Accessibility & contrast

On white

6.54
#5F4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5F4BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BBB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BBB#FFFFFF#000000##FFFFFF
##5F4BBB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#3F657C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4bbb;
/* rgb */ color: rgb(95, 75, 187);
/* oklch */ color: oklch(49.5% 0.169 286.7);
Tailwind
colors: {
  custom: {
    50: '#937ed0',
    500: '#5f4bbb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bbb;
$custom-light: #937ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bbb",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 187
  },
  "hsl": {
    "h": 250.714,
    "s": 45.161,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.16884,
    "h": 286.7
  },
  "luminance": 0.11053
}

Semantic roles & 50–950 ramp

primary
#5F4BBB
secondary
#C1CA98
accent
#D553BE
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F4BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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