#5F2FB7#5F2FB7

#5F2FB7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.199 H 292.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB7
RGBrgb(95, 47, 183)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 74%, 72%)
CMYKcmyk(48.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(33.74, 51.41, -63.83)
CIE-LCHlch(33.74, 81.96, 308.85°)
OKLaboklab(45.18% 0.0768 -0.1831)
OKLCHoklch(45.18% 0.199 292.7)
XYZxyz(14.2807, 7.8843, 45.5600)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB7 #87B72F
analogous
#2F43B7 #5F2FB7 #A32FB7
triadic
#5F2FB7 #B75F2F #2FB75F
tetradic
#5F2FB7 #B72F43 #87B72F #2FB7A3
square
#5F2FB7 #B72F43 #87B72F #2FB7A3
split-complementary
#5F2FB7 #B7A32F #43B72F
monochromatic
#2C1656 #462286 #5F2FB7 #7F51D2 #A282DF

Accessibility & contrast

On white

8.15
#5F2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5F2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FB7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB7#FFFFFF#000000##FFFFFF
##5F2FB71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2fb7;
/* rgb */ color: rgb(95, 47, 183);
/* oklch */ color: oklch(45.2% 0.199 292.7);
Tailwind
colors: {
  custom: {
    50: '#956cce',
    500: '#5f2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb7;
$custom-light: #956cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb7",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 261.176,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.19854,
    "h": 292.7
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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