#5F2EB8#5F2EB8

#5F2EB8 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.201 H 292.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5F2EB8
RGBrgb(95, 46, 184)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 72%)
CMYKcmyk(48.4%, 75%, 0%, 27.8%)
CIE-LABlab(33.66, 52.15, -64.55)
CIE-LCHlch(33.66, 82.99, 308.94°)
OKLaboklab(45.15% 0.0773 -0.1852)
OKLCHoklch(45.15% 0.201 292.7)
XYZxyz(14.3456, 7.8471, 46.0969)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EB8 #87B82E
analogous
#2E42B8 #5F2EB8 #A42EB8
triadic
#5F2EB8 #B85F2E #2EB85F
tetradic
#5F2EB8 #B82E42 #87B82E #2EB8A4
square
#5F2EB8 #B82E42 #87B82E #2EB8A4
split-complementary
#5F2EB8 #B8A42E #42B82E
monochromatic
#2C1656 #462287 #5F2EB8 #7F50D3 #A281DF

Accessibility & contrast

On white

8.17
#5F2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5F2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EB8
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EB8#FFFFFF#000000##FFFFFF
##5F2EB81.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#435371
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2eb8;
/* rgb */ color: rgb(95, 46, 184);
/* oklch */ color: oklch(45.2% 0.201 292.7);
Tailwind
colors: {
  custom: {
    50: '#956cce',
    500: '#5f2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eb8;
$custom-light: #956cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eb8",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 261.304,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.20071,
    "h": 292.7
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#5F2EB8
secondary
#ACC879
accent
#E345AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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