#5F2BB3#5F2BB3

#5F2BB3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.198 H 294.1°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5F2BB3
RGBrgb(95, 43, 179)
HSLhsl(263, 61%, 44%)
HSVhsv(263, 76%, 70%)
CMYKcmyk(46.9%, 76%, 0%, 29.8%)
CIE-LABlab(32.73, 52.21, -63.11)
CIE-LCHlch(32.73, 81.91, 309.60°)
OKLaboklab(44.37% 0.0811 -0.1809)
OKLCHoklch(44.37% 0.198 294.1)
XYZxyz(13.7176, 7.4149, 43.3475)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BB3 #7FB32B
analogous
#2B3BB3 #5F2BB3 #A32BB3
triadic
#5F2BB3 #B35F2B #2BB35F
tetradic
#5F2BB3 #B32B3B #7FB32B #2BB3A3
square
#5F2BB3 #B32B3B #7FB32B #2BB3A3
split-complementary
#5F2BB3 #B3A32B #3BB32B
monochromatic
#2B1350 #451F82 #5F2BB3 #7D48D3 #A079DF

Accessibility & contrast

On white

8.46
#5F2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5F2BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BB3
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BB3#FFFFFF#000000##FFFFFF
##5F2BB31.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#46506D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2bb3;
/* rgb */ color: rgb(95, 43, 179);
/* oklch */ color: oklch(44.4% 0.198 294.1);
Tailwind
colors: {
  custom: {
    50: '#956acb',
    500: '#5f2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bb3;
$custom-light: #956acb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bb3",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 262.941,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44366,
    "c": 0.19831,
    "h": 294.1
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#5F2BB3
secondary
#A7C773
accent
#E443A7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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