#512995#512995

#512995 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.166 H 294.6°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#512995
RGBrgb(81, 41, 149)
HSLhsl(262, 57%, 37%)
HSVhsv(262, 72%, 58%)
CMYKcmyk(45.6%, 72.5%, 0%, 41.6%)
CIE-LABlab(28.13, 42.73, -52.57)
CIE-LCHlch(28.13, 67.75, 309.10°)
OKLaboklab(39.93% 0.0691 -0.1505)
OKLCHoklch(39.93% 0.166 294.6)
XYZxyz(9.6096, 5.5049, 28.9842)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512995 #6D9529
analogous
#293795 #512995 #872995
triadic
#512995 #955129 #299551
tetradic
#512995 #952937 #6D9529 #299587
square
#512995 #952937 #6D9529 #299587
split-complementary
#512995 #958729 #379529
monochromatic
#1D0F35 #371C65 #512995 #6B36C5 #8E64D4

Accessibility & contrast

On white

10.00
#512995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#512995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512995
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512995#FFFFFF#000000##FFFFFF
##5129951.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#3E445C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512995;
/* rgb */ color: rgb(81, 41, 149);
/* oklch */ color: oklch(39.9% 0.166 294.6);
Tailwind
colors: {
  custom: {
    50: '#8866b5',
    500: '#512995',
    950: '#000000',
  },
}
SCSS
$custom: #512995;
$custom-light: #8866b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512995",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 262.222,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.1656,
    "h": 294.6
  },
  "luminance": 0.05505
}

Semantic roles & 50–950 ramp

primary
#512995
secondary
#99BA60
accent
#E048A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512995

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

Preview Lab → · Contrast checker → · Palette generator →

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