#512679#512679

#512679 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.136 H 304.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#512679
RGBrgb(81, 38, 121)
HSLhsl(271, 52%, 31%)
HSVhsv(271, 69%, 47%)
CMYKcmyk(33.1%, 68.6%, 0%, 52.5%)
CIE-LABlab(25.31, 36.75, -39.67)
CIE-LCHlch(25.31, 54.08, 312.81°)
OKLaboklab(37.22% 0.0769 -0.1126)
OKLCHoklch(37.22% 0.136 304.3)
XYZxyz(7.5369, 4.5161, 18.5601)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512679 #4E7926
analogous
#272679 #512679 #792677
triadic
#512679 #795126 #267951
tetradic
#512679 #792726 #4E7926 #267779
square
#512679 #792726 #4E7926 #267779
split-complementary
#512679 #777926 #267927
monochromatic
#13091C #32174A #512679 #7035A8 #8F51C8

Accessibility & contrast

On white

11.03
#512679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#512679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512679
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512679#FFFFFF#000000##FFFFFF
##5126791.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#0B3C77
Tritanopia (blue-blind)
#4A384C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512679;
/* rgb */ color: rgb(81, 38, 121);
/* oklch */ color: oklch(37.2% 0.136 304.3);
Tailwind
colors: {
  custom: {
    50: '#8563a0',
    500: '#512679',
    950: '#000000',
  },
}
SCSS
$custom: #512679;
$custom-light: #8563a0;
$custom-dark: #000000;
JSON
{
  "hex": "#512679",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 271.084,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37216,
    "c": 0.1363,
    "h": 304.3
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#512679
secondary
#7CAB50
accent
#DC4C91
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #512679

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

Preview Lab → · Contrast checker → · Palette generator →

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