#512282#512282

#512282 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.152 H 301.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#512282
RGBrgb(81, 34, 130)
HSLhsl(269, 59%, 32%)
HSVhsv(269, 74%, 51%)
CMYKcmyk(37.7%, 73.8%, 0%, 49%)
CIE-LABlab(25.28, 41.15, -45.41)
CIE-LCHlch(25.28, 61.29, 312.18°)
OKLaboklab(37.42% 0.08 -0.1294)
OKLCHoklch(37.42% 0.152 301.7)
XYZxyz(7.9937, 4.5051, 21.5632)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512282 #538222
analogous
#222382 #512282 #812282
triadic
#512282 #825122 #228251
tetradic
#512282 #822223 #538222 #228281
square
#512282 #822223 #538222 #228281
split-complementary
#512282 #828122 #238222
monochromatic
#150921 #331551 #512282 #6F2FB3 #8E4ED1

Accessibility & contrast

On white

11.05
#512282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#512282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512282
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512282#FFFFFF#000000##FFFFFF
##5122821.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#473950
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512282;
/* rgb */ color: rgb(81, 34, 130);
/* oklch */ color: oklch(37.4% 0.152 301.7);
Tailwind
colors: {
  custom: {
    50: '#8762a7',
    500: '#512282',
    950: '#000000',
  },
}
SCSS
$custom: #512282;
$custom-light: #8762a7;
$custom-dark: #000000;
JSON
{
  "hex": "#512282",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 269.375,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37415,
    "c": 0.15217,
    "h": 301.7
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

primary
#512282
secondary
#81B44C
accent
#E24696
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #512282

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

Preview Lab → · Contrast checker → · Palette generator →

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