#512288#512288

#512288 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.159 H 299.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#512288
RGBrgb(81, 34, 136)
HSLhsl(268, 60%, 33%)
HSVhsv(268, 75%, 53%)
CMYKcmyk(40.4%, 75%, 0%, 46.7%)
CIE-LABlab(25.78, 42.72, -48.36)
CIE-LCHlch(25.78, 64.53, 311.46°)
OKLaboklab(37.92% 0.0788 -0.1381)
OKLCHoklch(37.92% 0.159 299.7)
XYZxyz(8.4082, 4.6709, 23.7464)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512288 #598822
analogous
#222688 #512288 #842288
triadic
#512288 #885122 #228851
tetradic
#512288 #882226 #598822 #228884
square
#512288 #882226 #598822 #228884
split-complementary
#512288 #888422 #268822
monochromatic
#170A26 #341657 #512288 #6E2EB9 #8D51D3

Accessibility & contrast

On white

10.86
#512288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#512288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512288
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512288#FFFFFF#000000##FFFFFF
##5122881.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#443C53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512288;
/* rgb */ color: rgb(81, 34, 136);
/* oklch */ color: oklch(37.9% 0.159 299.7);
Tailwind
colors: {
  custom: {
    50: '#8762ab',
    500: '#512288',
    950: '#000000',
  },
}
SCSS
$custom: #512288;
$custom-light: #8762ab;
$custom-dark: #000000;
JSON
{
  "hex": "#512288",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 267.647,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37925,
    "c": 0.15898,
    "h": 299.7
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#512288
secondary
#87B74F
accent
#E3459A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512288

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

Preview Lab → · Contrast checker → · Palette generator →

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