#512495#512495

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

Color values

HEX#512495
RGBrgb(81, 36, 149)
HSLhsl(264, 61%, 36%)
HSVhsv(264, 76%, 58%)
CMYKcmyk(45.6%, 75.8%, 0%, 41.6%)
CIE-LABlab(27.24, 45.22, -54.02)
CIE-LCHlch(27.24, 70.45, 309.93°)
OKLaboklab(39.31% 0.0738 -0.1547)
OKLCHoklch(39.31% 0.171 295.5)
XYZxyz(9.4476, 5.1808, 28.9302)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512495 #689524
analogous
#243095 #512495 #8A2495
triadic
#512495 #955124 #249551
tetradic
#512495 #952430 #689524 #24958A
square
#512495 #952430 #689524 #24958A
split-complementary
#512495 #958A24 #309524
monochromatic
#1B0C32 #361864 #512495 #6C30C6 #8D5CD8

Accessibility & contrast

On white

10.31
#512495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512495
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512495#FFFFFF#000000##FFFFFF
##5124951.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#3E425B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512495;
/* rgb */ color: rgb(81, 36, 149);
/* oklch */ color: oklch(39.3% 0.171 295.5);
Tailwind
colors: {
  custom: {
    50: '#8964b5',
    500: '#512495',
    950: '#000000',
  },
}
SCSS
$custom: #512495;
$custom-light: #8964b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512495",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 263.894,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3931,
    "c": 0.17142,
    "h": 295.5
  },
  "luminance": 0.05181
}

Semantic roles & 50–950 ramp

primary
#512495
secondary
#95BC59
accent
#E444A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512495

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

Preview Lab → · Contrast checker → · Palette generator →

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