#512698#512698

#512698 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.173 H 294.4°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#512698
RGBrgb(81, 38, 152)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 60%)
CMYKcmyk(46.7%, 75%, 0%, 40.4%)
CIE-LABlab(27.85, 45.06, -54.87)
CIE-LCHlch(27.85, 71.00, 309.40°)
OKLaboklab(39.82% 0.0712 -0.1572)
OKLCHoklch(39.82% 0.173 294.4)
XYZxyz(9.7524, 5.4023, 30.2286)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512698 #6D9826
analogous
#263498 #512698 #8A2698
triadic
#512698 #985126 #269851
tetradic
#512698 #982634 #6D9826 #26988A
square
#512698 #982634 #6D9826 #26988A
split-complementary
#512698 #988A26 #349826
monochromatic
#1D0E36 #371A67 #512698 #6B32C9 #8E61D7

Accessibility & contrast

On white

10.09
#512698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#512698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512698
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512698#FFFFFF#000000##FFFFFF
##5126981.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#3C445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512698;
/* rgb */ color: rgb(81, 38, 152);
/* oklch */ color: oklch(39.8% 0.173 294.4);
Tailwind
colors: {
  custom: {
    50: '#8965b7',
    500: '#512698',
    950: '#000000',
  },
}
SCSS
$custom: #512698;
$custom-light: #8965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#512698",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 262.632,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39821,
    "c": 0.1726,
    "h": 294.4
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#512698
secondary
#99BD5D
accent
#E345A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512698

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

Preview Lab → · Contrast checker → · Palette generator →

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