#512074#512074

#512074 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.139 H 307.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#512074
RGBrgb(81, 32, 116)
HSLhsl(275, 57%, 29%)
HSVhsv(275, 72%, 45%)
CMYKcmyk(30.2%, 72.4%, 0%, 54.5%)
CIE-LABlab(23.81, 38.58, -38.90)
CIE-LCHlch(23.81, 54.79, 314.77°)
OKLaboklab(36.03% 0.0846 -0.1103)
OKLCHoklch(36.03% 0.139 307.5)
XYZxyz(7.0616, 4.0434, 16.9281)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512074 #437420
analogous
#272074 #512074 #74206D
triadic
#512074 #745120 #207451
tetradic
#512074 #742720 #437420 #206D74
square
#512074 #742720 #437420 #206D74
split-complementary
#512074 #6D7420 #207427
monochromatic
#110718 #301344 #512074 #722DA4 #9343CB

Accessibility & contrast

On white

11.61
#512074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#512074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512074
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512074#FFFFFF#000000##FFFFFF
##5120741.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#093972
Tritanopia (blue-blind)
#4B3347
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #512074;
/* rgb */ color: rgb(81, 32, 116);
/* oklch */ color: oklch(36.0% 0.139 307.5);
Tailwind
colors: {
  custom: {
    50: '#85609d',
    500: '#512074',
    950: '#000000',
  },
}
SCSS
$custom: #512074;
$custom-light: #85609d;
$custom-dark: #000000;
JSON
{
  "hex": "#512074",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 275,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36026,
    "c": 0.13898,
    "h": 307.5
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#512074
secondary
#70A848
accent
#E04887
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512074

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

Preview Lab → · Contrast checker → · Palette generator →

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