#512482#512482

#512482 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.150 H 301.4°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#512482
RGBrgb(81, 36, 130)
HSLhsl(269, 57%, 33%)
HSVhsv(269, 72%, 51%)
CMYKcmyk(37.7%, 72.3%, 0%, 49%)
CIE-LABlab(25.63, 40.15, -44.83)
CIE-LCHlch(25.63, 60.19, 311.85°)
OKLaboklab(37.67% 0.0779 -0.1277)
OKLCHoklch(37.67% 0.15 301.4)
XYZxyz(8.0525, 4.6227, 21.5828)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512482 #558224
analogous
#242682 #512482 #802482
triadic
#512482 #825124 #248251
tetradic
#512482 #822426 #558224 #248280
square
#512482 #822426 #558224 #248280
split-complementary
#512482 #828024 #268224
monochromatic
#150922 #331752 #512482 #6F31B2 #8E51CF

Accessibility & contrast

On white

10.91
#512482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#512482 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512482
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512482#FFFFFF#000000##FFFFFF
##5124821.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#463A50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512482;
/* rgb */ color: rgb(81, 36, 130);
/* oklch */ color: oklch(37.7% 0.150 301.4);
Tailwind
colors: {
  custom: {
    50: '#8663a7',
    500: '#512482',
    950: '#000000',
  },
}
SCSS
$custom: #512482;
$custom-light: #8663a7;
$custom-dark: #000000;
JSON
{
  "hex": "#512482",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 130
  },
  "hsl": {
    "h": 268.723,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37668,
    "c": 0.14961,
    "h": 301.4
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#512482
secondary
#83B34F
accent
#E04897
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #512482

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

Preview Lab → · Contrast checker → · Palette generator →

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