#512866#512866

#512866 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.1% C 0.110 H 312.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#512866
RGBrgb(81, 40, 102)
HSLhsl(280, 44%, 28%)
HSVhsv(280, 61%, 40%)
CMYKcmyk(20.6%, 60.8%, 0%, 60%)
CIE-LABlab(24.41, 30.83, -28.91)
CIE-LCHlch(24.41, 42.26, 316.84°)
OKLaboklab(36.14% 0.0748 -0.081)
OKLCHoklch(36.14% 0.11 312.7)
XYZxyz(6.5500, 4.2264, 13.0385)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512866 #3D6628
analogous
#322866 #512866 #66285C
triadic
#512866 #665128 #286651
tetradic
#512866 #663228 #3D6628 #285C66
square
#512866 #663228 #3D6628 #285C66
split-complementary
#512866 #5C6628 #286632
monochromatic
#110916 #2E173A #512866 #743992 #954FBA

Accessibility & contrast

On white

11.38
#512866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#512866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512866
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512866#FFFFFF#000000##FFFFFF
##5128661.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153868
Deuteranopia (green-blind)
#253B64
Tritanopia (blue-blind)
#4F3343
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512866;
/* rgb */ color: rgb(81, 40, 102);
/* oklch */ color: oklch(36.1% 0.110 312.7);
Tailwind
colors: {
  custom: {
    50: '#846492',
    500: '#512866',
    950: '#000000',
  },
}
SCSS
$custom: #512866;
$custom-light: #846492;
$custom-dark: #000000;
JSON
{
  "hex": "#512866",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 102
  },
  "hsl": {
    "h": 279.677,
    "s": 43.662,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36141,
    "c": 0.11029,
    "h": 312.7
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#512866
secondary
#699951
accent
#D3547F
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #512866

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

Preview Lab → · Contrast checker → · Palette generator →

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