#512694#512694

#512694 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.168 H 295.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#512694
RGBrgb(81, 38, 148)
HSLhsl(263, 59%, 36%)
HSVhsv(263, 74%, 58%)
CMYKcmyk(45.3%, 74.3%, 0%, 42%)
CIE-LABlab(27.50, 43.97, -52.98)
CIE-LCHlch(27.50, 68.85, 309.69°)
OKLaboklab(39.46% 0.0722 -0.1517)
OKLCHoklch(39.46% 0.168 295.4)
XYZxyz(9.4303, 5.2734, 28.5322)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512694 #699426
analogous
#263294 #512694 #882694
triadic
#512694 #945126 #269451
tetradic
#512694 #942632 #699426 #269488
square
#512694 #942632 #699426 #269488
split-complementary
#512694 #948826 #329426
monochromatic
#1C0D33 #361963 #512694 #6C33C5 #8D5FD6

Accessibility & contrast

On white

10.22
#512694 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#512694 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512694
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512694#FFFFFF#000000##FFFFFF
##5126941.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#3E425B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512694;
/* rgb */ color: rgb(81, 38, 148);
/* oklch */ color: oklch(39.5% 0.168 295.4);
Tailwind
colors: {
  custom: {
    50: '#8865b4',
    500: '#512694',
    950: '#000000',
  },
}
SCSS
$custom: #512694;
$custom-light: #8865b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512694",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 148
  },
  "hsl": {
    "h": 263.455,
    "s": 59.14,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39464,
    "c": 0.16799,
    "h": 295.4
  },
  "luminance": 0.05274
}

Semantic roles & 50–950 ramp

primary
#512694
secondary
#95BB5B
accent
#E245A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512694

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

Preview Lab → · Contrast checker → · Palette generator →

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