#512481#512481

#512481 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.148 H 301.7°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#512481
RGBrgb(81, 36, 129)
HSLhsl(269, 56%, 32%)
HSVhsv(269, 72%, 51%)
CMYKcmyk(37.2%, 72.1%, 0%, 49.4%)
CIE-LABlab(25.55, 39.89, -44.34)
CIE-LCHlch(25.55, 59.64, 311.98°)
OKLaboklab(37.59% 0.0781 -0.1263)
OKLCHoklch(37.59% 0.148 301.7)
XYZxyz(7.9857, 4.5960, 21.2310)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512481 #548124
analogous
#242681 #512481 #802481
triadic
#512481 #815124 #248151
tetradic
#512481 #812426 #548124 #248180
square
#512481 #812426 #548124 #248180
split-complementary
#512481 #818024 #268124
monochromatic
#150921 #331751 #512481 #6F31B1 #8E51CE

Accessibility & contrast

On white

10.94
#512481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512481
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512481#FFFFFF#000000##FFFFFF
##5124811.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#473A50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512481;
/* rgb */ color: rgb(81, 36, 129);
/* oklch */ color: oklch(37.6% 0.148 301.7);
Tailwind
colors: {
  custom: {
    50: '#8663a6',
    500: '#512481',
    950: '#000000',
  },
}
SCSS
$custom: #512481;
$custom-light: #8663a6;
$custom-dark: #000000;
JSON
{
  "hex": "#512481",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 129
  },
  "hsl": {
    "h": 269.032,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37586,
    "c": 0.14846,
    "h": 301.7
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#512481
secondary
#82B24E
accent
#E04896
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #512481

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

Preview Lab → · Contrast checker → · Palette generator →

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