#512296#512296

#512296 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.175 H 295.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#512296
RGBrgb(81, 34, 150)
HSLhsl(264, 63%, 36%)
HSVhsv(264, 77%, 59%)
CMYKcmyk(46%, 77.3%, 0%, 41.2%)
CIE-LABlab(27.00, 46.42, -55.02)
CIE-LCHlch(27.00, 71.99, 310.15°)
OKLaboklab(39.17% 0.0753 -0.1577)
OKLCHoklch(39.17% 0.175 295.5)
XYZxyz(9.4689, 5.0952, 29.3328)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512296 #679622
analogous
#222D96 #512296 #8B2296
triadic
#512296 #965122 #229651
tetradic
#512296 #96222D #679622 #22968B
square
#512296 #96222D #679622 #22968B
split-complementary
#512296 #968B22 #2D9622
monochromatic
#1B0B32 #361764 #512296 #6C2DC8 #8D59D9

Accessibility & contrast

On white

10.40
#512296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512296
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512296#FFFFFF#000000##FFFFFF
##5122961.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#3E415B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512296;
/* rgb */ color: rgb(81, 34, 150);
/* oklch */ color: oklch(39.2% 0.175 295.5);
Tailwind
colors: {
  custom: {
    50: '#8963b6',
    500: '#512296',
    950: '#000000',
  },
}
SCSS
$custom: #512296;
$custom-light: #8963b6;
$custom-dark: #000000;
JSON
{
  "hex": "#512296",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 264.31,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3917,
    "c": 0.17472,
    "h": 295.5
  },
  "luminance": 0.05095
}

Semantic roles & 50–950 ramp

primary
#512296
secondary
#94BE56
accent
#E642A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512296

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

Preview Lab → · Contrast checker → · Palette generator →

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