#512573#512573

#512573 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.131 H 307.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#512573
RGBrgb(81, 37, 115)
HSLhsl(274, 51%, 30%)
HSVhsv(274, 68%, 45%)
CMYKcmyk(29.6%, 67.8%, 0%, 54.9%)
CIE-LABlab(24.67, 35.75, -36.87)
CIE-LCHlch(24.67, 51.36, 314.11°)
OKLaboklab(36.62% 0.0787 -0.1043)
OKLCHoklch(36.62% 0.131 307)
XYZxyz(7.1488, 4.3104, 16.6717)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512573 #477325
analogous
#2A2573 #512573 #73256E
triadic
#512573 #735125 #257351
tetradic
#512573 #732A25 #477325 #256E73
square
#512573 #732A25 #477325 #256E73
split-complementary
#512573 #6E7325 #25732A
monochromatic
#100717 #301645 #512573 #7234A1 #914DC6

Accessibility & contrast

On white

11.28
#512573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#512573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512573
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512573#FFFFFF#000000##FFFFFF
##5125731.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#143B71
Tritanopia (blue-blind)
#4B3548
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512573;
/* rgb */ color: rgb(81, 37, 115);
/* oklch */ color: oklch(36.6% 0.131 307.0);
Tailwind
colors: {
  custom: {
    50: '#85639c',
    500: '#512573',
    950: '#000000',
  },
}
SCSS
$custom: #512573;
$custom-light: #85639c;
$custom-dark: #000000;
JSON
{
  "hex": "#512573",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 115
  },
  "hsl": {
    "h": 273.846,
    "s": 51.316,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36617,
    "c": 0.13067,
    "h": 307
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#512573
secondary
#74A64E
accent
#DB4D8B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512573

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

Preview Lab → · Contrast checker → · Palette generator →

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