#512692#512692

#512692 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.166 H 296.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#512692
RGBrgb(81, 38, 146)
HSLhsl(264, 59%, 36%)
HSVhsv(264, 74%, 57%)
CMYKcmyk(44.5%, 74%, 0%, 42.7%)
CIE-LABlab(27.33, 43.43, -52.03)
CIE-LCHlch(27.33, 67.78, 309.85°)
OKLaboklab(39.29% 0.0726 -0.1489)
OKLCHoklch(39.29% 0.166 296)
XYZxyz(9.2734, 5.2107, 27.7057)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512692 #679226
analogous
#263192 #512692 #872692
triadic
#512692 #925126 #269251
tetradic
#512692 #922631 #679226 #269287
square
#512692 #922631 #679226 #269287
split-complementary
#512692 #928726 #319226
monochromatic
#1B0D31 #361961 #512692 #6C33C3 #8D5DD5

Accessibility & contrast

On white

10.28
#512692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#512692 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512692
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512692#FFFFFF#000000##FFFFFF
##5126921.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#3F425A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #512692;
/* rgb */ color: rgb(81, 38, 146);
/* oklch */ color: oklch(39.3% 0.166 296.0);
Tailwind
colors: {
  custom: {
    50: '#8864b3',
    500: '#512692',
    950: '#000000',
  },
}
SCSS
$custom: #512692;
$custom-light: #8864b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512692",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 146
  },
  "hsl": {
    "h": 263.889,
    "s": 58.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39288,
    "c": 0.16568,
    "h": 296
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#512692
secondary
#94BA5A
accent
#E246A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512692

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

Preview Lab → · Contrast checker → · Palette generator →

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