#512385#512385

#512385 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.154 H 300.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#512385
RGBrgb(81, 35, 133)
HSLhsl(268, 58%, 33%)
HSVhsv(268, 74%, 52%)
CMYKcmyk(39.1%, 73.7%, 0%, 47.8%)
CIE-LABlab(25.70, 41.44, -46.61)
CIE-LCHlch(25.70, 62.37, 311.64°)
OKLaboklab(37.79% 0.0784 -0.133)
OKLCHoklch(37.79% 0.154 300.5)
XYZxyz(8.2270, 4.6448, 22.6489)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512385 #578523
analogous
#232685 #512385 #822385
triadic
#512385 #855123 #238551
tetradic
#512385 #852326 #578523 #238582
square
#512385 #852326 #578523 #238582
split-complementary
#512385 #858223 #268523
monochromatic
#160924 #331655 #512385 #6F30B5 #8D51D1

Accessibility & contrast

On white

10.89
#512385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#512385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512385
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512385#FFFFFF#000000##FFFFFF
##5123851.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512385;
/* rgb */ color: rgb(81, 35, 133);
/* oklch */ color: oklch(37.8% 0.154 300.5);
Tailwind
colors: {
  custom: {
    50: '#8762a9',
    500: '#512385',
    950: '#000000',
  },
}
SCSS
$custom: #512385;
$custom-light: #8762a9;
$custom-dark: #000000;
JSON
{
  "hex": "#512385",
  "rgb": {
    "r": 81,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 268.163,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37792,
    "c": 0.15435,
    "h": 300.5
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#512385
secondary
#85B54F
accent
#E24699
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #512385

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

Preview Lab → · Contrast checker → · Palette generator →

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