#5B25B2#5B25B2

#5B25B2 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.203 H 293.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5B25B2
RGBrgb(91, 37, 178)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 79%, 70%)
CMYKcmyk(48.9%, 79.2%, 0%, 30.2%)
CIE-LABlab(31.26, 53.98, -64.95)
CIE-LCHlch(31.26, 84.46, 309.73°)
OKLaboklab(43.2% 0.08 -0.1864)
OKLCHoklch(43.2% 0.203 293.2)
XYZxyz(13.0096, 6.7612, 42.7304)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25B2 #7CB225
analogous
#2535B2 #5B25B2 #A225B2
triadic
#5B25B2 #B25B25 #25B25B
tetradic
#5B25B2 #B22535 #7CB225 #25B2A2
square
#5B25B2 #B22535 #7CB225 #25B2A2
split-complementary
#5B25B2 #B2A225 #35B225
monochromatic
#27104D #411A7F #5B25B2 #783DD7 #9B70E1

Accessibility & contrast

On white

8.93
#5B25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25B2
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25B2#FFFFFF#000000##FFFFFF
##5B25B21.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#3F4D6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b25b2;
/* rgb */ color: rgb(91, 37, 178);
/* oklch */ color: oklch(43.2% 0.203 293.2);
Tailwind
colors: {
  custom: {
    50: '#9267ca',
    500: '#5b25b2',
    950: '#000000',
  },
}
SCSS
$custom: #5b25b2;
$custom-light: #9267ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25b2",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 262.979,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.432,
    "c": 0.20289,
    "h": 293.2
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#5B25B2
secondary
#A4C86B
accent
#E93FA8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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