#512695#512695

#512695 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.169 H 295.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#512695
RGBrgb(81, 38, 149)
HSLhsl(263, 59%, 37%)
HSVhsv(263, 74%, 58%)
CMYKcmyk(45.6%, 74.5%, 0%, 41.6%)
CIE-LABlab(27.59, 44.25, -53.46)
CIE-LCHlch(27.59, 69.39, 309.61°)
OKLaboklab(39.55% 0.0719 -0.1531)
OKLCHoklch(39.55% 0.169 295.2)
XYZxyz(9.5098, 5.3052, 28.9509)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512695 #6A9526
analogous
#263395 #512695 #892695
triadic
#512695 #955126 #269551
tetradic
#512695 #952633 #6A9526 #269589
square
#512695 #952633 #6A9526 #269589
split-complementary
#512695 #958926 #339526
monochromatic
#1C0D33 #361A64 #512695 #6C32C6 #8D5FD6

Accessibility & contrast

On white

10.19
#512695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#512695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512695
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512695#FFFFFF#000000##FFFFFF
##5126951.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#3E435B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512695;
/* rgb */ color: rgb(81, 38, 149);
/* oklch */ color: oklch(39.6% 0.169 295.2);
Tailwind
colors: {
  custom: {
    50: '#8965b5',
    500: '#512695',
    950: '#000000',
  },
}
SCSS
$custom: #512695;
$custom-light: #8965b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512695",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 263.243,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39553,
    "c": 0.16915,
    "h": 295.2
  },
  "luminance": 0.05305
}

Semantic roles & 50–950 ramp

primary
#512695
secondary
#96BB5B
accent
#E345A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512695

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

Preview Lab → · Contrast checker → · Palette generator →

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