#512285#512285

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

Color values

HEX#512285
RGBrgb(81, 34, 133)
HSLhsl(268, 59%, 33%)
HSVhsv(268, 74%, 52%)
CMYKcmyk(39.1%, 74.4%, 0%, 47.8%)
CIE-LABlab(25.52, 41.93, -46.89)
CIE-LCHlch(25.52, 62.91, 311.81°)
OKLaboklab(37.67% 0.0794 -0.1338)
OKLCHoklch(37.67% 0.156 300.7)
XYZxyz(8.1980, 4.5868, 22.6392)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512285 #568522
analogous
#222485 #512285 #822285
triadic
#512285 #855122 #228551
tetradic
#512285 #852224 #568522 #228582
square
#512285 #852224 #568522 #228582
split-complementary
#512285 #858222 #248522
monochromatic
#160924 #331654 #512285 #6F2EB6 #8D4FD2

Accessibility & contrast

On white

10.95
#512285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512285
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512285#FFFFFF#000000##FFFFFF
##5122851.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512285;
/* rgb */ color: rgb(81, 34, 133);
/* oklch */ color: oklch(37.7% 0.156 300.7);
Tailwind
colors: {
  custom: {
    50: '#8762a9',
    500: '#512285',
    950: '#000000',
  },
}
SCSS
$custom: #512285;
$custom-light: #8762a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512285",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 268.485,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37668,
    "c": 0.15558,
    "h": 300.7
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#512285
secondary
#84B64D
accent
#E24598
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512285

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

Preview Lab → · Contrast checker → · Palette generator →

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