#5F2FB8#5F2FB8

#5F2FB8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.200 H 292.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB8
RGBrgb(95, 47, 184)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 74%, 72%)
CMYKcmyk(48.4%, 74.5%, 0%, 27.8%)
CIE-LABlab(33.83, 51.68, -64.28)
CIE-LCHlch(33.83, 82.48, 308.80°)
OKLaboklab(45.27% 0.0765 -0.1844)
OKLCHoklch(45.27% 0.2 292.5)
XYZxyz(14.3851, 7.9261, 46.1101)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB8 #88B82F
analogous
#2F43B8 #5F2FB8 #A32FB8
triadic
#5F2FB8 #B85F2F #2FB85F
tetradic
#5F2FB8 #B82F43 #88B82F #2FB8A3
square
#5F2FB8 #B82F43 #88B82F #2FB8A3
split-complementary
#5F2FB8 #B8A32F #43B82F
monochromatic
#2D1657 #462387 #5F2FB8 #7F52D3 #A382DF

Accessibility & contrast

On white

8.12
#5F2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FB8
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB8#FFFFFF#000000##FFFFFF
##5F2FB81.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#435471
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2fb8;
/* rgb */ color: rgb(95, 47, 184);
/* oklch */ color: oklch(45.3% 0.200 292.5);
Tailwind
colors: {
  custom: {
    50: '#956cce',
    500: '#5f2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb8;
$custom-light: #956cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb8",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 261.022,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45271,
    "c": 0.19966,
    "h": 292.5
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#5F2FB8
secondary
#ADC87B
accent
#E245AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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