#512474#512474

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

Color values

HEX#512474
RGBrgb(81, 36, 116)
HSLhsl(274, 53%, 30%)
HSVhsv(274, 69%, 45%)
CMYKcmyk(30.2%, 69%, 0%, 54.5%)
CIE-LABlab(24.55, 36.53, -37.71)
CIE-LCHlch(24.55, 52.50, 314.10°)
OKLaboklab(36.55% 0.0798 -0.1068)
OKLCHoklch(36.55% 0.133 306.8)
XYZxyz(7.1759, 4.2721, 16.9662)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512474 #477424
analogous
#292474 #512474 #74246F
triadic
#512474 #745124 #247451
tetradic
#512474 #742924 #477424 #246F74
square
#512474 #742924 #477424 #246F74
split-complementary
#512474 #6F7424 #247429
monochromatic
#100717 #301645 #512474 #7232A3 #914BC7

Accessibility & contrast

On white

11.32
#512474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#512474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512474
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512474#FFFFFF#000000##FFFFFF
##5124741.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#113B72
Tritanopia (blue-blind)
#4B3548
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512474;
/* rgb */ color: rgb(81, 36, 116);
/* oklch */ color: oklch(36.6% 0.133 306.8);
Tailwind
colors: {
  custom: {
    50: '#85629d',
    500: '#512474',
    950: '#000000',
  },
}
SCSS
$custom: #512474;
$custom-light: #85629d;
$custom-dark: #000000;
JSON
{
  "hex": "#512474",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 116
  },
  "hsl": {
    "h": 273.75,
    "s": 52.632,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36554,
    "c": 0.13332,
    "h": 306.8
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#512474
secondary
#74A74D
accent
#DC4C8B
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512474

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

Preview Lab → · Contrast checker → · Palette generator →

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