#582098#582098

#582098 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.180 H 299.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#582098
RGBrgb(88, 32, 152)
HSLhsl(268, 65%, 36%)
HSVhsv(268, 79%, 60%)
CMYKcmyk(42.1%, 78.9%, 0%, 40.4%)
CIE-LABlab(27.78, 48.97, -54.95)
CIE-LCHlch(27.78, 73.61, 311.70°)
OKLaboklab(39.97% 0.0872 -0.1572)
OKLCHoklch(39.97% 0.18 299)
XYZxyz(10.2071, 5.3746, 30.1993)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582098 #609820
analogous
#202498 #582098 #942098
triadic
#582098 #985820 #209858
tetradic
#582098 #982024 #609820 #209894
square
#582098 #982024 #609820 #209894
split-complementary
#582098 #989420 #249820
monochromatic
#1D0B33 #3B1565 #582098 #752BCB #9557DC

Accessibility & contrast

On white

10.12
#582098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#582098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582098
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582098#FFFFFF#000000##FFFFFF
##5820981.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#48415C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #582098;
/* rgb */ color: rgb(88, 32, 152);
/* oklch */ color: oklch(40.0% 0.180 299.0);
Tailwind
colors: {
  custom: {
    50: '#8e62b7',
    500: '#582098',
    950: '#000000',
  },
}
SCSS
$custom: #582098;
$custom-light: #8e62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#582098",
  "rgb": {
    "r": 88,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 268,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39965,
    "c": 0.17973,
    "h": 299
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#582098
secondary
#8DBF54
accent
#E8409A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #582098

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

Preview Lab → · Contrast checker → · Palette generator →

#582098 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva