#5828AF#5828AF

#5828AF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.197 H 292.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5828AF
RGBrgb(88, 40, 175)
HSLhsl(261, 63%, 42%)
HSVhsv(261, 77%, 69%)
CMYKcmyk(49.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(31.08, 51.45, -63.46)
CIE-LCHlch(31.08, 81.69, 309.04°)
OKLaboklab(42.92% 0.0741 -0.1822)
OKLCHoklch(42.92% 0.197 292.1)
XYZxyz(12.5190, 6.6870, 41.1802)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828AF #7FAF28
analogous
#283CAF #5828AF #9B28AF
triadic
#5828AF #AF5828 #28AF58
tetradic
#5828AF #AF283C #7FAF28 #28AF9B
square
#5828AF #AF283C #7FAF28 #28AF9B
split-complementary
#5828AF #AF9B28 #3CAF28
monochromatic
#26114B #3F1D7D #5828AF #7541D4 #9973DF

Accessibility & contrast

On white

8.98
#5828AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5828AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5828AF
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828AF#FFFFFF#000000##FFFFFF
##5828AF1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#3B4E6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5828af;
/* rgb */ color: rgb(88, 40, 175);
/* oklch */ color: oklch(42.9% 0.197 292.1);
Tailwind
colors: {
  custom: {
    50: '#9068c8',
    500: '#5828af',
    950: '#000000',
  },
}
SCSS
$custom: #5828af;
$custom-light: #9068c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5828af",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 261.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42915,
    "c": 0.19667,
    "h": 292.1
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#5828AF
secondary
#A6C66D
accent
#E642AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5828AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5828AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva