#512672#512672

#512672 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.128 H 307.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#512672
RGBrgb(81, 38, 114)
HSLhsl(274, 50%, 30%)
HSVhsv(274, 67%, 45%)
CMYKcmyk(28.9%, 66.7%, 0%, 55.3%)
CIE-LABlab(24.80, 34.95, -36.03)
CIE-LCHlch(24.80, 50.20, 314.13°)
OKLaboklab(36.69% 0.0774 -0.1019)
OKLCHoklch(36.69% 0.128 307.2)
XYZxyz(7.1231, 4.3505, 16.3808)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512672 #477226
analogous
#2B2672 #512672 #72266D
triadic
#512672 #725126 #267251
tetradic
#512672 #722B26 #477226 #266D72
square
#512672 #722B26 #477226 #266D72
split-complementary
#512672 #6D7226 #26722B
monochromatic
#100817 #301744 #512672 #7235A0 #914EC4

Accessibility & contrast

On white

11.23
#512672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#512672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512672
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512672#FFFFFF#000000##FFFFFF
##5126721.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#173B70
Tritanopia (blue-blind)
#4C3648
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512672;
/* rgb */ color: rgb(81, 38, 114);
/* oklch */ color: oklch(36.7% 0.128 307.2);
Tailwind
colors: {
  custom: {
    50: '#85639b',
    500: '#512672',
    950: '#000000',
  },
}
SCSS
$custom: #512672;
$custom-light: #85639b;
$custom-dark: #000000;
JSON
{
  "hex": "#512672",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 273.947,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36685,
    "c": 0.12797,
    "h": 307.2
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#512672
secondary
#74A54F
accent
#DA4E8B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512672

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

Preview Lab → · Contrast checker → · Palette generator →

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