#5F26B1#5F26B1

#5F26B1 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.7% C 0.201 H 295.2°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5F26B1
RGBrgb(95, 38, 177)
HSLhsl(265, 65%, 42%)
HSVhsv(265, 79%, 69%)
CMYKcmyk(46.3%, 78.5%, 0%, 30.6%)
CIE-LABlab(31.79, 53.88, -63.46)
CIE-LCHlch(31.79, 83.25, 310.34°)
OKLaboklab(43.65% 0.0857 -0.1819)
OKLCHoklch(43.65% 0.201 295.2)
XYZxyz(13.3461, 6.9931, 42.2331)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26B1 #78B126
analogous
#2633B1 #5F26B1 #A426B1
triadic
#5F26B1 #B15F26 #26B15F
tetradic
#5F26B1 #B12633 #78B126 #26B1A4
square
#5F26B1 #B12633 #78B126 #26B1A4
split-complementary
#5F26B1 #B1A426 #33B126
monochromatic
#29104C #441B7F #5F26B1 #7D3FD6 #9F71E0

Accessibility & contrast

On white

8.76
#5F26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F26B1
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26B1#FFFFFF#000000##FFFFFF
##5F26B11.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#474D6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f26b1;
/* rgb */ color: rgb(95, 38, 177);
/* oklch */ color: oklch(43.7% 0.201 295.2);
Tailwind
colors: {
  custom: {
    50: '#9567c9',
    500: '#5f26b1',
    950: '#000000',
  },
}
SCSS
$custom: #5f26b1;
$custom-light: #9567c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26b1",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 264.604,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43652,
    "c": 0.20112,
    "h": 295.2
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

primary
#5F26B1
secondary
#A2C76B
accent
#E840A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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