#512485#512485

#512485 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.153 H 300.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#512485
RGBrgb(81, 36, 133)
HSLhsl(268, 57%, 33%)
HSVhsv(268, 73%, 52%)
CMYKcmyk(39.1%, 72.9%, 0%, 47.8%)
CIE-LABlab(25.88, 40.94, -46.32)
CIE-LCHlch(25.88, 61.82, 311.47°)
OKLaboklab(37.92% 0.0773 -0.1321)
OKLCHoklch(37.92% 0.153 300.3)
XYZxyz(8.2568, 4.7045, 22.6588)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512485 #588524
analogous
#242885 #512485 #812485
triadic
#512485 #855124 #248551
tetradic
#512485 #852428 #588524 #248581
square
#512485 #852428 #588524 #248581
split-complementary
#512485 #858124 #288524
monochromatic
#160A25 #341755 #512485 #6E31B5 #8D53D0

Accessibility & contrast

On white

10.82
#512485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512485
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512485#FFFFFF#000000##FFFFFF
##5124851.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#453C52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #512485;
/* rgb */ color: rgb(81, 36, 133);
/* oklch */ color: oklch(37.9% 0.153 300.3);
Tailwind
colors: {
  custom: {
    50: '#8763a9',
    500: '#512485',
    950: '#000000',
  },
}
SCSS
$custom: #512485;
$custom-light: #8763a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512485",
  "rgb": {
    "r": 81,
    "g": 36,
    "b": 133
  },
  "hsl": {
    "h": 267.835,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37918,
    "c": 0.15308,
    "h": 300.3
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#512485
secondary
#86B450
accent
#E14799
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512485

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

Preview Lab → · Contrast checker → · Palette generator →

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