#512374#512374

#512374 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.135 H 307.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#512374
RGBrgb(81, 35, 116)
HSLhsl(274, 54%, 30%)
HSVhsv(274, 70%, 45%)
CMYKcmyk(30.2%, 69.8%, 0%, 54.5%)
CIE-LABlab(24.36, 37.06, -38.01)
CIE-LCHlch(24.36, 53.09, 314.27°)
OKLaboklab(36.42% 0.081 -0.1077)
OKLCHoklch(36.42% 0.135 307)
XYZxyz(7.1461, 4.2124, 16.9562)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512374 #467423
analogous
#292374 #512374 #74236F
triadic
#512374 #745123 #237451
tetradic
#512374 #742923 #467423 #236F74
square
#512374 #742923 #467423 #236F74
split-complementary
#512374 #6F7423 #237429
monochromatic
#100718 #301545 #512374 #7231A3 #9149C8

Accessibility & contrast

On white

11.40
#512374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#512374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512374
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512374#FFFFFF#000000##FFFFFF
##5123741.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#0F3A72
Tritanopia (blue-blind)
#4B3548
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #512374;
/* rgb */ color: rgb(81, 35, 116);
/* oklch */ color: oklch(36.4% 0.135 307.0);
Tailwind
colors: {
  custom: {
    50: '#85619d',
    500: '#512374',
    950: '#000000',
  },
}
SCSS
$custom: #512374;
$custom-light: #85619d;
$custom-dark: #000000;
JSON
{
  "hex": "#512374",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 116
  },
  "hsl": {
    "h": 274.074,
    "s": 53.642,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36417,
    "c": 0.13478,
    "h": 307
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#512374
secondary
#73A74C
accent
#DD4B8A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #512374

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

Preview Lab → · Contrast checker → · Palette generator →

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