#5F2EBD#5F2EBD

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

Color values

HEX#5F2EBD
RGBrgb(95, 46, 189)
HSLhsl(261, 61%, 46%)
HSVhsv(261, 76%, 74%)
CMYKcmyk(49.7%, 75.7%, 0%, 25.9%)
CIE-LABlab(34.11, 53.49, -66.77)
CIE-LCHlch(34.11, 85.56, 308.70°)
OKLaboklab(45.6% 0.076 -0.1917)
OKLCHoklch(45.6% 0.206 291.6)
XYZxyz(14.8790, 8.0604, 48.9061)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EBD #8CBD2E
analogous
#2E45BD #5F2EBD #A62EBD
triadic
#5F2EBD #BD5F2E #2EBD5F
tetradic
#5F2EBD #BD2E45 #8CBD2E #2EBDA6
square
#5F2EBD #BD2E45 #8CBD2E #2EBDA6
split-complementary
#5F2EBD #BDA62E #45BD2E
monochromatic
#2E165B #46228C #5F2EBD #8053D5 #A484E1

Accessibility & contrast

On white

8.04
#5F2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2EBD
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EBD#FFFFFF#000000##FFFFFF
##5F2EBD1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#405574
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2ebd;
/* rgb */ color: rgb(95, 46, 189);
/* oklch */ color: oklch(45.6% 0.206 291.6);
Tailwind
colors: {
  custom: {
    50: '#966cd2',
    500: '#5f2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ebd;
$custom-light: #966cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ebd",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 260.559,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45604,
    "c": 0.20626,
    "h": 291.6
  },
  "luminance": 0.08061
}

Semantic roles & 50–950 ramp

primary
#5F2EBD
secondary
#B0CA7C
accent
#E444AD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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