#5825B1#5825B1

#5825B1 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.202 H 292.1°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5825B1
RGBrgb(88, 37, 177)
HSLhsl(262, 65%, 42%)
HSVhsv(262, 79%, 69%)
CMYKcmyk(50.3%, 79.1%, 0%, 30.6%)
CIE-LABlab(30.81, 53.30, -65.10)
CIE-LCHlch(30.81, 84.14, 309.31°)
OKLaboklab(42.78% 0.0757 -0.187)
OKLCHoklch(42.78% 0.202 292.1)
XYZxyz(12.6196, 6.5717, 42.1900)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5825B1 #7EB125
analogous
#2538B1 #5825B1 #9E25B1
triadic
#5825B1 #B15825 #25B158
tetradic
#5825B1 #B12538 #7EB125 #25B19E
square
#5825B1 #B12538 #7EB125 #25B19E
split-complementary
#5825B1 #B19E25 #38B125
monochromatic
#26104C #3F1A7E #5825B1 #753DD6 #996FE1

Accessibility & contrast

On white

9.07
#5825B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5825B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5825B1
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5825B1#FFFFFF#000000##FFFFFF
##5825B11.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#3A4D6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5825b1;
/* rgb */ color: rgb(88, 37, 177);
/* oklch */ color: oklch(42.8% 0.202 292.1);
Tailwind
colors: {
  custom: {
    50: '#9166c9',
    500: '#5825b1',
    950: '#000000',
  },
}
SCSS
$custom: #5825b1;
$custom-light: #9166c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5825b1",
  "rgb": {
    "r": 88,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 261.857,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.20174,
    "h": 292.1
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#5825B1
secondary
#A6C86A
accent
#E83FAB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5825B1

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

Preview Lab → · Contrast checker → · Palette generator →

#5825B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva