#512697#512697

#512697 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.171 H 294.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#512697
RGBrgb(81, 38, 151)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 59%)
CMYKcmyk(46.4%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.76, 44.79, -54.40)
CIE-LCHlch(27.76, 70.46, 309.47°)
OKLaboklab(39.73% 0.0715 -0.1558)
OKLCHoklch(39.73% 0.171 294.6)
XYZxyz(9.6708, 5.3697, 29.7991)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512697 #6C9726
analogous
#263497 #512697 #8A2697
triadic
#512697 #975126 #269751
tetradic
#512697 #972634 #6C9726 #26978A
square
#512697 #972634 #6C9726 #26978A
split-complementary
#512697 #978A26 #349726
monochromatic
#1D0D35 #371A66 #512697 #6B32C8 #8E60D7

Accessibility & contrast

On white

10.13
#512697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#512697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512697
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512697#FFFFFF#000000##FFFFFF
##5126971.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#3D445C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512697;
/* rgb */ color: rgb(81, 38, 151);
/* oklch */ color: oklch(39.7% 0.171 294.6);
Tailwind
colors: {
  custom: {
    50: '#8965b7',
    500: '#512697',
    950: '#000000',
  },
}
SCSS
$custom: #512697;
$custom-light: #8965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#512697",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 262.832,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39731,
    "c": 0.17145,
    "h": 294.6
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#512697
secondary
#98BC5C
accent
#E345A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512697

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

Preview Lab → · Contrast checker → · Palette generator →

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