#512484#512484

#512484 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.152 H 300.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#512484
RGBrgb(81, 36, 132)
HSLhsl(268, 57%, 33%)
HSVhsv(268, 73%, 52%)
CMYKcmyk(38.6%, 72.7%, 0%, 48.2%)
CIE-LABlab(25.79, 40.68, -45.83)
CIE-LCHlch(25.79, 61.28, 311.60°)
OKLaboklab(37.83% 0.0775 -0.1307)
OKLCHoklch(37.83% 0.152 300.7)
XYZxyz(8.1881, 4.6770, 22.2967)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512484 #578424
analogous
#242784 #512484 #812484
triadic
#512484 #845124 #248451
tetradic
#512484 #842427 #578424 #248481
square
#512484 #842427 #578424 #248481
split-complementary
#512484 #848124 #278424
monochromatic
#160A24 #331754 #512484 #6F31B4 #8D52D0

Accessibility & contrast

On white

10.85
#512484 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#512484 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512484
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512484#FFFFFF#000000##FFFFFF
##5124841.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#463B51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512484;
/* rgb */ color: rgb(81, 36, 132);
/* oklch */ color: oklch(37.8% 0.152 300.7);
Tailwind
colors: {
  custom: {
    50: '#8763a8',
    500: '#512484',
    950: '#000000',
  },
}
SCSS
$custom: #512484;
$custom-light: #8763a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512484",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 132
  },
  "hsl": {
    "h": 268.125,
    "s": 57.143,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37834,
    "c": 0.15193,
    "h": 300.7
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#512484
secondary
#85B450
accent
#E04799
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512484

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

Preview Lab → · Contrast checker → · Palette generator →

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