#5F26AF#5F26AF

#5F26AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.199 H 295.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5F26AF
RGBrgb(95, 38, 175)
HSLhsl(265, 64%, 42%)
HSVhsv(265, 78%, 69%)
CMYKcmyk(45.7%, 78.3%, 0%, 31.4%)
CIE-LABlab(31.61, 53.37, -62.56)
CIE-LCHlch(31.61, 82.24, 310.47°)
OKLaboklab(43.47% 0.0863 -0.1793)
OKLCHoklch(43.47% 0.199 295.7)
XYZxyz(13.1482, 6.9139, 41.1909)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F26AF #76AF26
analogous
#2631AF #5F26AF #A426AF
triadic
#5F26AF #AF5F26 #26AF5F
tetradic
#5F26AF #AF2631 #76AF26 #26AFA4
square
#5F26AF #AF2631 #76AF26 #26AFA4
split-complementary
#5F26AF #AFA426 #31AF26
monochromatic
#28104A #441B7D #5F26AF #7C3DD5 #9E70E0

Accessibility & contrast

On white

8.81
#5F26AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F26AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F26AF
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F26AF#FFFFFF#000000##FFFFFF
##5F26AF1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#484C6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f26af;
/* rgb */ color: rgb(95, 38, 175);
/* oklch */ color: oklch(43.5% 0.199 295.7);
Tailwind
colors: {
  custom: {
    50: '#9467c8',
    500: '#5f26af',
    950: '#000000',
  },
}
SCSS
$custom: #5f26af;
$custom-light: #9467c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f26af",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 264.964,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43471,
    "c": 0.19899,
    "h": 295.7
  },
  "luminance": 0.06914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F26AF

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

Preview Lab → · Contrast checker → · Palette generator →

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