#5F2DBE#5F2DBE

#5F2DBE is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.208 H 291.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5F2DBE
RGBrgb(95, 45, 190)
HSLhsl(261, 62%, 46%)
HSVhsv(261, 76%, 75%)
CMYKcmyk(50%, 76.3%, 0%, 25.5%)
CIE-LABlab(34.04, 54.21, -67.48)
CIE-LCHlch(34.04, 86.56, 308.78°)
OKLaboklab(45.58% 0.0766 -0.1938)
OKLCHoklch(45.58% 0.208 291.6)
XYZxyz(14.9493, 8.0268, 49.4669)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DBE #8CBE2D
analogous
#2D43BE #5F2DBE #A72DBE
triadic
#5F2DBE #BE5F2D #2DBE5F
tetradic
#5F2DBE #BE2D43 #8CBE2D #2DBEA7
square
#5F2DBE #BE2D43 #8CBE2D #2DBEA7
split-complementary
#5F2DBE #BEA72D #43BE2D
monochromatic
#2E165B #46218D #5F2DBE #8052D6 #A484E2

Accessibility & contrast

On white

8.06
#5F2DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F2DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DBE
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DBE#FFFFFF#000000##FFFFFF
##5F2DBE1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#3F5574
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2dbe;
/* rgb */ color: rgb(95, 45, 190);
/* oklch */ color: oklch(45.6% 0.208 291.6);
Tailwind
colors: {
  custom: {
    50: '#966cd3',
    500: '#5f2dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5f2dbe;
$custom-light: #966cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2dbe",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 260.69,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45583,
    "c": 0.20836,
    "h": 291.6
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#5F2DBE
secondary
#B0CB7C
accent
#E543AD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F2DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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