#582298#582298

#582298 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.178 H 298.7°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#582298
RGBrgb(88, 34, 152)
HSLhsl(267, 63%, 36%)
HSVhsv(267, 78%, 60%)
CMYKcmyk(42.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(28.08, 48.11, -54.46)
CIE-LCHlch(28.08, 72.67, 311.46°)
OKLaboklab(40.17% 0.0855 -0.1558)
OKLCHoklch(40.17% 0.178 298.7)
XYZxyz(10.2626, 5.4856, 30.2178)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582298 #629822
analogous
#222798 #582298 #932298
triadic
#582298 #985822 #229858
tetradic
#582298 #982227 #629822 #229893
square
#582298 #982227 #629822 #229893
split-complementary
#582298 #989322 #279822
monochromatic
#1E0C34 #3B1766 #582298 #752DCA #955ADA

Accessibility & contrast

On white

10.01
#582298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#582298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582298
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582298#FFFFFF#000000##FFFFFF
##5822981.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #582298;
/* rgb */ color: rgb(88, 34, 152);
/* oklch */ color: oklch(40.2% 0.178 298.7);
Tailwind
colors: {
  custom: {
    50: '#8e63b7',
    500: '#582298',
    950: '#000000',
  },
}
SCSS
$custom: #582298;
$custom-light: #8e63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#582298",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 267.458,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.17767,
    "h": 298.7
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

primary
#582298
secondary
#8FBE57
accent
#E6419B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #582298

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

Preview Lab → · Contrast checker → · Palette generator →

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