#512673#512673

#512673 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.129 H 306.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#512673
RGBrgb(81, 38, 115)
HSLhsl(274, 50%, 30%)
HSVhsv(274, 67%, 45%)
CMYKcmyk(29.6%, 67%, 0%, 54.9%)
CIE-LABlab(24.87, 35.21, -36.55)
CIE-LCHlch(24.87, 50.75, 313.92°)
OKLaboklab(36.76% 0.0774 -0.1034)
OKLCHoklch(36.76% 0.129 306.8)
XYZxyz(7.1803, 4.3734, 16.6822)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512673 #487326
analogous
#2A2673 #512673 #73266F
triadic
#512673 #735126 #267351
tetradic
#512673 #732A26 #487326 #266F73
square
#512673 #732A26 #487326 #266F73
split-complementary
#512673 #6F7326 #26732A
monochromatic
#100817 #311745 #512673 #7135A1 #914FC5

Accessibility & contrast

On white

11.20
#512673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512673
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512673#FFFFFF#000000##FFFFFF
##5126731.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#163B71
Tritanopia (blue-blind)
#4B3649
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512673;
/* rgb */ color: rgb(81, 38, 115);
/* oklch */ color: oklch(36.8% 0.129 306.8);
Tailwind
colors: {
  custom: {
    50: '#85639c',
    500: '#512673',
    950: '#000000',
  },
}
SCSS
$custom: #512673;
$custom-light: #85639c;
$custom-dark: #000000;
JSON
{
  "hex": "#512673",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 115
  },
  "hsl": {
    "h": 273.506,
    "s": 50.327,
    "l": 30
  },
  "oklch": {
    "l": 0.3676,
    "c": 0.12916,
    "h": 306.8
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#512673
secondary
#75A64F
accent
#DA4E8C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512673

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

Preview Lab → · Contrast checker → · Palette generator →

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