#5F2BA8#5F2BA8

#5F2BA8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.186 H 296.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5F2BA8
RGBrgb(95, 43, 168)
HSLhsl(265, 59%, 41%)
HSVhsv(265, 74%, 66%)
CMYKcmyk(43.5%, 74.4%, 0%, 34.1%)
CIE-LABlab(31.78, 49.34, -58.09)
CIE-LCHlch(31.78, 76.21, 310.34°)
OKLaboklab(43.4% 0.0839 -0.1662)
OKLCHoklch(43.4% 0.186 296.8)
XYZxyz(12.6492, 6.9875, 37.7205)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BA8 #74A82B
analogous
#2B36A8 #5F2BA8 #9E2BA8
triadic
#5F2BA8 #A85F2B #2BA85F
tetradic
#5F2BA8 #A82B36 #74A82B #2BA89E
square
#5F2BA8 #A82B36 #74A82B #2BA89E
split-complementary
#5F2BA8 #A89E2B #36A82B
monochromatic
#281247 #431F77 #5F2BA8 #7C42CF #9E72DB

Accessibility & contrast

On white

8.76
#5F2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BA8
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BA8#FFFFFF#000000##FFFFFF
##5F2BA81.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#4C4B67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ba8;
/* rgb */ color: rgb(95, 43, 168);
/* oklch */ color: oklch(43.4% 0.186 296.8);
Tailwind
colors: {
  custom: {
    50: '#936ac3',
    500: '#5f2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ba8;
$custom-light: #936ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ba8",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 264.96,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.434,
    "c": 0.18619,
    "h": 296.8
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

primary
#5F2BA8
secondary
#9FC26C
accent
#E245A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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