#512299#512299

#512299 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.178 H 294.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#512299
RGBrgb(81, 34, 153)
HSLhsl(264, 64%, 37%)
HSVhsv(264, 78%, 60%)
CMYKcmyk(47.1%, 77.8%, 0%, 40%)
CIE-LABlab(27.28, 47.23, -56.42)
CIE-LCHlch(27.28, 73.57, 309.93°)
OKLaboklab(39.45% 0.0744 -0.1617)
OKLCHoklch(39.45% 0.178 294.7)
XYZxyz(9.7136, 5.1930, 30.6214)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512299 #6A9922
analogous
#222F99 #512299 #8D2299
triadic
#512299 #995122 #229951
tetradic
#512299 #99222F #6A9922 #22998D
square
#512299 #99222F #6A9922 #22998D
split-complementary
#512299 #998D22 #2F9922
monochromatic
#1C0C35 #361767 #512299 #6C2DCB #8D5BDB

Accessibility & contrast

On white

10.30
#512299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#512299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512299
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512299#FFFFFF#000000##FFFFFF
##5122991.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#3C435D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512299;
/* rgb */ color: rgb(81, 34, 153);
/* oklch */ color: oklch(39.4% 0.178 294.7);
Tailwind
colors: {
  custom: {
    50: '#8963b8',
    500: '#512299',
    950: '#000000',
  },
}
SCSS
$custom: #512299;
$custom-light: #8963b8;
$custom-dark: #000000;
JSON
{
  "hex": "#512299",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 263.697,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39445,
    "c": 0.17805,
    "h": 294.7
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#512299
secondary
#96BF58
accent
#E741A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512299

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

Preview Lab → · Contrast checker → · Palette generator →

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