#5F2DBA#5F2DBA

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

Color values

HEX#5F2DBA
RGBrgb(95, 45, 186)
HSLhsl(261, 61%, 45%)
HSVhsv(261, 76%, 73%)
CMYKcmyk(48.9%, 75.8%, 0%, 27.1%)
CIE-LABlab(33.68, 53.15, -65.71)
CIE-LCHlch(33.68, 84.51, 308.97°)
OKLaboklab(45.22% 0.0776 -0.1886)
OKLCHoklch(45.22% 0.204 292.4)
XYZxyz(14.5181, 7.8543, 47.1959)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DBA #88BA2D
analogous
#2D41BA #5F2DBA #A62DBA
triadic
#5F2DBA #BA5F2D #2DBA5F
tetradic
#5F2DBA #BA2D41 #88BA2D #2DBAA6
square
#5F2DBA #BA2D41 #88BA2D #2DBAA6
split-complementary
#5F2DBA #BAA62D #41BA2D
monochromatic
#2D1557 #462189 #5F2DBA #7F50D5 #A381E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2DBA#FFFFFF#000000##FFFFFF
##5F2DBA1.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)
#0051BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#425472
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2dba;
/* rgb */ color: rgb(95, 45, 186);
/* oklch */ color: oklch(45.2% 0.204 292.4);
Tailwind
colors: {
  custom: {
    50: '#956bd0',
    500: '#5f2dba',
    950: '#000000',
  },
}
SCSS
$custom: #5f2dba;
$custom-light: #956bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2dba",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 261.277,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4522,
    "c": 0.20396,
    "h": 292.4
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#5F2DBA
secondary
#ADC979
accent
#E444AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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