#581274#581274

#581274 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.157 H 313.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#581274
RGBrgb(88, 18, 116)
HSLhsl(283, 73%, 26%)
HSVhsv(283, 84%, 45%)
CMYKcmyk(24.1%, 84.5%, 0%, 54.5%)
CIE-LABlab(22.89, 45.80, -40.34)
CIE-LCHlch(22.89, 61.03, 318.63°)
OKLaboklab(35.6% 0.1084 -0.1141)
OKLCHoklch(35.6% 0.157 313.5)
XYZxyz(7.3926, 3.7685, 16.8576)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581274 #2E7412
analogous
#271274 #581274 #74125F
triadic
#581274 #745812 #127458
tetradic
#581274 #742712 #2E7412 #125F74
square
#581274 #742712 #2E7412 #125F74
split-complementary
#581274 #5F7412 #127427
monochromatic
#14041A #300A3F #581274 #801AA9 #A823DD

Accessibility & contrast

On white

11.98
#581274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#581274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581274
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581274#FFFFFF#000000##FFFFFF
##5812741.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#043872
Tritanopia (blue-blind)
#552B44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #581274;
/* rgb */ color: rgb(88, 18, 116);
/* oklch */ color: oklch(35.6% 0.157 313.5);
Tailwind
colors: {
  custom: {
    50: '#8b5a9d',
    500: '#581274',
    950: '#000000',
  },
}
SCSS
$custom: #581274;
$custom-light: #8b5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#581274",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 282.857,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35599,
    "c": 0.15745,
    "h": 313.5
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#581274
secondary
#58AB37
accent
#F0386D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581274

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

Preview Lab → · Contrast checker → · Palette generator →

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