#5E2FBB#5E2FBB

#5E2FBB is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.203 H 291.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5E2FBB
RGBrgb(94, 47, 187)
HSLhsl(260, 60%, 46%)
HSVhsv(260, 75%, 73%)
CMYKcmyk(49.7%, 74.9%, 0%, 26.7%)
CIE-LABlab(33.98, 52.33, -65.80)
CIE-LCHlch(33.98, 84.08, 308.49°)
OKLaboklab(45.44% 0.0743 -0.1889)
OKLCHoklch(45.44% 0.203 291.5)
XYZxyz(14.5997, 8.0000, 47.7790)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FBB #8CBB2F
analogous
#2F46BB #5E2FBB #A42FBB
triadic
#5E2FBB #BB5E2F #2FBB5E
tetradic
#5E2FBB #BB2F46 #8CBB2F #2FBBA4
square
#5E2FBB #BB2F46 #8CBB2F #2FBBA4
split-complementary
#5E2FBB #BBA42F #46BB2F
monochromatic
#2D1659 #45238A #5E2FBB #7E53D4 #A384E0

Accessibility & contrast

On white

8.08
#5E2FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5E2FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FBB
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FBB#FFFFFF#000000##FFFFFF
##5E2FBB1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#3F5573
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e2fbb;
/* rgb */ color: rgb(94, 47, 187);
/* oklch */ color: oklch(45.4% 0.203 291.5);
Tailwind
colors: {
  custom: {
    50: '#956cd1',
    500: '#5e2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fbb;
$custom-light: #956cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fbb",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 260.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45436,
    "c": 0.20299,
    "h": 291.5
  },
  "luminance": 0.08001
}

Semantic roles & 50–950 ramp

primary
#5E2FBB
secondary
#B0C97C
accent
#E345AE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5E2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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