#5A25B2#5A25B2

#5A25B2 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.203 H 292.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A25B2
RGBrgb(90, 37, 178)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 79%, 70%)
CMYKcmyk(49.4%, 79.2%, 0%, 30.2%)
CIE-LABlab(31.14, 53.84, -65.15)
CIE-LCHlch(31.14, 84.52, 309.57°)
OKLaboklab(43.09% 0.0785 -0.1871)
OKLCHoklch(43.09% 0.203 292.8)
XYZxyz(12.9116, 6.7107, 42.7258)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25B2 #7DB225
analogous
#2537B2 #5A25B2 #A025B2
triadic
#5A25B2 #B25A25 #25B25A
tetradic
#5A25B2 #B22537 #7DB225 #25B2A0
square
#5A25B2 #B22537 #7DB225 #25B2A0
split-complementary
#5A25B2 #B2A025 #37B225
monochromatic
#27104D #401A7F #5A25B2 #773DD7 #9B70E1

Accessibility & contrast

On white

8.97
#5A25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25B2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25B2#FFFFFF#000000##FFFFFF
##5A25B21.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#3D4D6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a25b2;
/* rgb */ color: rgb(90, 37, 178);
/* oklch */ color: oklch(43.1% 0.203 292.8);
Tailwind
colors: {
  custom: {
    50: '#9266ca',
    500: '#5a25b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a25b2;
$custom-light: #9266ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25b2",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 262.553,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43092,
    "c": 0.20286,
    "h": 292.8
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#5A25B2
secondary
#A5C86B
accent
#E93FA9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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