#512291#512291

#512291 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.169 H 296.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#512291
RGBrgb(81, 34, 145)
HSLhsl(265, 62%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(44.1%, 76.6%, 0%, 43.1%)
CIE-LABlab(26.56, 45.10, -52.68)
CIE-LCHlch(26.56, 69.34, 310.57°)
OKLaboklab(38.72% 0.0766 -0.1508)
OKLCHoklch(38.72% 0.169 296.9)
XYZxyz(9.0749, 4.9375, 27.2575)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512291 #629122
analogous
#222B91 #512291 #882291
triadic
#512291 #915122 #229151
tetradic
#512291 #91222B #629122 #229188
square
#512291 #91222B #629122 #229188
split-complementary
#512291 #918822 #2B9122
monochromatic
#1A0B2E #35165F #512291 #6D2EC3 #8D56D7

Accessibility & contrast

On white

10.57
#512291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#512291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512291
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512291#FFFFFF#000000##FFFFFF
##5122911.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#403F58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512291;
/* rgb */ color: rgb(81, 34, 145);
/* oklch */ color: oklch(38.7% 0.169 296.9);
Tailwind
colors: {
  custom: {
    50: '#8862b2',
    500: '#512291',
    950: '#000000',
  },
}
SCSS
$custom: #512291;
$custom-light: #8862b2;
$custom-dark: #000000;
JSON
{
  "hex": "#512291",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 265.405,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.16911,
    "h": 296.9
  },
  "luminance": 0.04938
}

Semantic roles & 50–950 ramp

primary
#512291
secondary
#8FBB53
accent
#E543A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512291

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

Preview Lab → · Contrast checker → · Palette generator →

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