#512185#512185

#512185 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.157 H 300.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#512185
RGBrgb(81, 33, 133)
HSLhsl(269, 60%, 33%)
HSVhsv(269, 75%, 52%)
CMYKcmyk(39.1%, 75.2%, 0%, 47.8%)
CIE-LABlab(25.35, 42.42, -47.17)
CIE-LCHlch(25.35, 63.44, 311.96°)
OKLaboklab(37.55% 0.0804 -0.1346)
OKLCHoklch(37.55% 0.157 300.9)
XYZxyz(8.1698, 4.5304, 22.6298)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512185 #558521
analogous
#212385 #512185 #832185
triadic
#512185 #855121 #218551
tetradic
#512185 #852123 #558521 #218583
square
#512185 #852123 #558521 #218583
split-complementary
#512185 #858321 #238521
monochromatic
#150923 #331554 #512185 #6F2DB6 #8E4DD3

Accessibility & contrast

On white

11.02
#512185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#512185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512185
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512185#FFFFFF#000000##FFFFFF
##5121851.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#453A51
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #512185;
/* rgb */ color: rgb(81, 33, 133);
/* oklch */ color: oklch(37.5% 0.157 300.9);
Tailwind
colors: {
  custom: {
    50: '#8761a9',
    500: '#512185',
    950: '#000000',
  },
}
SCSS
$custom: #512185;
$custom-light: #8761a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512185",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 268.8,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.1568,
    "h": 300.9
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#512185
secondary
#83B64C
accent
#E34497
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512185

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

Preview Lab → · Contrast checker → · Palette generator →

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