#5F26B0#5F26B0

#5F26B0 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.200 H 295.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5F26B0
RGBrgb(95, 38, 176)
HSLhsl(265, 64%, 42%)
HSVhsv(265, 78%, 69%)
CMYKcmyk(46%, 78.4%, 0%, 31%)
CIE-LABlab(31.70, 53.63, -63.01)
CIE-LCHlch(31.70, 82.74, 310.40°)
OKLaboklab(43.56% 0.086 -0.1806)
OKLCHoklch(43.56% 0.2 295.5)
XYZxyz(13.2468, 6.9534, 41.7101)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26B0 #77B026
analogous
#2632B0 #5F26B0 #A426B0
triadic
#5F26B0 #B05F26 #26B05F
tetradic
#5F26B0 #B02632 #77B026 #26B0A4
square
#5F26B0 #B02632 #77B026 #26B0A4
split-complementary
#5F26B0 #B0A426 #32B026
monochromatic
#29104B #441B7E #5F26B0 #7C3ED5 #9E70E0

Accessibility & contrast

On white

8.78
#5F26B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F26B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F26B0
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26B0#FFFFFF#000000##FFFFFF
##5F26B01.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#484C6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f26b0;
/* rgb */ color: rgb(95, 38, 176);
/* oklch */ color: oklch(43.6% 0.200 295.5);
Tailwind
colors: {
  custom: {
    50: '#9467c9',
    500: '#5f26b0',
    950: '#000000',
  },
}
SCSS
$custom: #5f26b0;
$custom-light: #9467c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26b0",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 176
  },
  "hsl": {
    "h": 264.783,
    "s": 64.486,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43562,
    "c": 0.20005,
    "h": 295.5
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#5F26B0
secondary
#A1C76B
accent
#E740A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F26B0

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

Preview Lab → · Contrast checker → · Palette generator →

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