#512674#512674

#512674 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.130 H 306.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#512674
RGBrgb(81, 38, 116)
HSLhsl(273, 51%, 30%)
HSVhsv(273, 67%, 45%)
CMYKcmyk(30.2%, 67.2%, 0%, 54.5%)
CIE-LABlab(24.94, 35.46, -37.08)
CIE-LCHlch(24.94, 51.31, 313.72°)
OKLaboklab(36.84% 0.0773 -0.105)
OKLCHoklch(36.84% 0.13 306.4)
XYZxyz(7.2382, 4.3966, 16.9869)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512674 #497426
analogous
#2A2674 #512674 #742670
triadic
#512674 #745126 #267451
tetradic
#512674 #742A26 #497426 #267074
square
#512674 #742A26 #497426 #267074
split-complementary
#512674 #707426 #26742A
monochromatic
#110818 #311746 #512674 #7135A2 #904FC5

Accessibility & contrast

On white

11.17
#512674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#512674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512674
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512674#FFFFFF#000000##FFFFFF
##5126741.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#143B72
Tritanopia (blue-blind)
#4B3649
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512674;
/* rgb */ color: rgb(81, 38, 116);
/* oklch */ color: oklch(36.8% 0.130 306.4);
Tailwind
colors: {
  custom: {
    50: '#85639c',
    500: '#512674',
    950: '#000000',
  },
}
SCSS
$custom: #512674;
$custom-light: #85639c;
$custom-dark: #000000;
JSON
{
  "hex": "#512674",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 116
  },
  "hsl": {
    "h": 273.077,
    "s": 50.649,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36835,
    "c": 0.13035,
    "h": 306.4
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#512674
secondary
#76A64F
accent
#DA4E8D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #512674

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

Preview Lab → · Contrast checker → · Palette generator →

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