#512666#512666

#512666 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.8% C 0.114 H 313.1°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#512666
RGBrgb(81, 38, 102)
HSLhsl(280, 46%, 27%)
HSVhsv(280, 63%, 40%)
CMYKcmyk(20.6%, 62.7%, 0%, 60%)
CIE-LABlab(23.98, 31.96, -29.59)
CIE-LCHlch(23.98, 43.56, 317.21°)
OKLaboklab(35.83% 0.0777 -0.083)
OKLCHoklch(35.83% 0.114 313.1)
XYZxyz(6.4843, 4.0950, 13.0166)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512666 #3B6626
analogous
#312666 #512666 #66265B
triadic
#512666 #665126 #266651
tetradic
#512666 #663126 #3B6626 #265B66
square
#512666 #663126 #3B6626 #265B66
split-complementary
#512666 #5B6626 #266631
monochromatic
#120816 #2E1539 #512666 #743793 #974BBC

Accessibility & contrast

On white

11.54
#512666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#512666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512666
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512666#FFFFFF#000000##FFFFFF
##5126661.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113768
Deuteranopia (green-blind)
#233A64
Tritanopia (blue-blind)
#4F3142
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512666;
/* rgb */ color: rgb(81, 38, 102);
/* oklch */ color: oklch(35.8% 0.114 313.1);
Tailwind
colors: {
  custom: {
    50: '#846392',
    500: '#512666',
    950: '#000000',
  },
}
SCSS
$custom: #512666;
$custom-light: #846392;
$custom-dark: #000000;
JSON
{
  "hex": "#512666",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 102
  },
  "hsl": {
    "h": 280.313,
    "s": 45.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35832,
    "c": 0.11369,
    "h": 313.1
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#512666
secondary
#67994F
accent
#D5527D
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #512666

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

Preview Lab → · Contrast checker → · Palette generator →

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