#582F9D#582F9D

#582F9D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.168 H 295.3°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#582F9D
RGBrgb(88, 47, 157)
HSLhsl(262, 54%, 40%)
HSVhsv(262, 70%, 62%)
CMYKcmyk(43.9%, 70.1%, 0%, 38.4%)
CIE-LABlab(30.74, 43.12, -53.17)
CIE-LCHlch(30.74, 68.45, 309.04°)
OKLaboklab(42.19% 0.0719 -0.152)
OKLCHoklch(42.19% 0.168 295.3)
XYZxyz(11.1252, 6.5418, 32.5683)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#582F9D #749D2F
analogous
#2F3D9D #582F9D #8F2F9D
triadic
#582F9D #9D582F #2F9D58
tetradic
#582F9D #9D2F3D #749D2F #2F9D8F
square
#582F9D #9D2F3D #749D2F #2F9D8F
split-complementary
#582F9D #9D8F2F #3D9D2F
monochromatic
#23133F #3E216E #582F9D #7443C7 #9772D5

Accessibility & contrast

On white

9.10
#582F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#582F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #582F9D
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##582F9D#FFFFFF#000000##FFFFFF
##582F9D1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#454A62
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #582f9d;
/* rgb */ color: rgb(88, 47, 157);
/* oklch */ color: oklch(42.2% 0.168 295.3);
Tailwind
colors: {
  custom: {
    50: '#8d6bbb',
    500: '#582f9d',
    950: '#000000',
  },
}
SCSS
$custom: #582f9d;
$custom-light: #8d6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#582f9d",
  "rgb": {
    "r": 88,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 262.364,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.42191,
    "c": 0.16818,
    "h": 295.3
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#582F9D
secondary
#9EBC6B
accent
#DD4BA7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #582F9D

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

Preview Lab → · Contrast checker → · Palette generator →

#582F9D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva