#512658#512658

#512658 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.9% C 0.097 H 321.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#512658
RGBrgb(81, 38, 88)
HSLhsl(292, 40%, 25%)
HSVhsv(292, 57%, 35%)
CMYKcmyk(8%, 56.8%, 0%, 65.5%)
CIE-LABlab(23.14, 28.69, -21.74)
CIE-LCHlch(23.14, 36.00, 322.86°)
OKLaboklab(34.94% 0.0766 -0.0602)
OKLCHoklch(34.94% 0.097 321.9)
XYZxyz(5.8477, 3.8404, 9.6639)
Luminance0.0384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512658 #2D5826
analogous
#382658 #512658 #582646
triadic
#512658 #585126 #265851
tetradic
#512658 #583826 #2D5826 #264658
square
#512658 #583826 #2D5826 #264658
split-complementary
#512658 #465826 #265838
monochromatic
#140915 #2A142D #512658 #783883 #A04BAD

Accessibility & contrast

On white

11.88
#512658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#512658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512658
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512658#FFFFFF#000000##FFFFFF
##5126581.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#2B3957
Tritanopia (blue-blind)
#522D3B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512658;
/* rgb */ color: rgb(81, 38, 88);
/* oklch */ color: oklch(34.9% 0.097 321.9);
Tailwind
colors: {
  custom: {
    50: '#836287',
    500: '#512658',
    950: '#000000',
  },
}
SCSS
$custom: #512658;
$custom-light: #836287;
$custom-dark: #000000;
JSON
{
  "hex": "#512658",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 88
  },
  "hsl": {
    "h": 291.6,
    "s": 39.683,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.09742,
    "h": 321.9
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#512658
secondary
#578B4F
accent
#D05869
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #512658

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

Preview Lab → · Contrast checker → · Palette generator →

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