#512574#512574

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

Color values

HEX#512574
RGBrgb(81, 37, 116)
HSLhsl(273, 52%, 30%)
HSVhsv(273, 68%, 45%)
CMYKcmyk(30.2%, 68.1%, 0%, 54.5%)
CIE-LABlab(24.74, 36.00, -37.40)
CIE-LCHlch(24.74, 51.91, 313.91°)
OKLaboklab(36.69% 0.0786 -0.1059)
OKLCHoklch(36.69% 0.132 306.6)
XYZxyz(7.2066, 4.3335, 16.9764)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512574 #487425
analogous
#2A2574 #512574 #74256F
triadic
#512574 #745125 #257451
tetradic
#512574 #742A25 #487425 #256F74
square
#512574 #742A25 #487425 #256F74
split-complementary
#512574 #6F7425 #25742A
monochromatic
#100717 #311646 #512574 #7134A2 #914DC6

Accessibility & contrast

On white

11.25
#512574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512574
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512574#FFFFFF#000000##FFFFFF
##5125741.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#133B72
Tritanopia (blue-blind)
#4B3649
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512574;
/* rgb */ color: rgb(81, 37, 116);
/* oklch */ color: oklch(36.7% 0.132 306.6);
Tailwind
colors: {
  custom: {
    50: '#85639d',
    500: '#512574',
    950: '#000000',
  },
}
SCSS
$custom: #512574;
$custom-light: #85639d;
$custom-dark: #000000;
JSON
{
  "hex": "#512574",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 116
  },
  "hsl": {
    "h": 273.418,
    "s": 51.634,
    "l": 30
  },
  "oklch": {
    "l": 0.36693,
    "c": 0.13185,
    "h": 306.6
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#512574
secondary
#75A74E
accent
#DB4D8C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512574

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

Preview Lab → · Contrast checker → · Palette generator →

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