#512292#512292

#512292 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.170 H 296.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#512292
RGBrgb(81, 34, 146)
HSLhsl(265, 62%, 35%)
HSVhsv(265, 77%, 57%)
CMYKcmyk(44.5%, 76.7%, 0%, 42.7%)
CIE-LABlab(26.64, 45.36, -53.15)
CIE-LCHlch(26.64, 69.87, 310.48°)
OKLaboklab(38.81% 0.0763 -0.1522)
OKLCHoklch(38.81% 0.17 296.6)
XYZxyz(9.1523, 4.9685, 27.6654)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512292 #639222
analogous
#222B92 #512292 #892292
triadic
#512292 #925122 #229251
tetradic
#512292 #92222B #639222 #229289
square
#512292 #92222B #639222 #229289
split-complementary
#512292 #928922 #2B9222
monochromatic
#1A0B2F #351660 #512292 #6D2EC4 #8D57D8

Accessibility & contrast

On white

10.53
#512292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512292
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512292#FFFFFF#000000##FFFFFF
##5122921.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#003E90
Tritanopia (blue-blind)
#404059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512292;
/* rgb */ color: rgb(81, 34, 146);
/* oklch */ color: oklch(38.8% 0.170 296.6);
Tailwind
colors: {
  custom: {
    50: '#8862b3',
    500: '#512292',
    950: '#000000',
  },
}
SCSS
$custom: #512292;
$custom-light: #8862b3;
$custom-dark: #000000;
JSON
{
  "hex": "#512292",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 265.179,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38807,
    "c": 0.17024,
    "h": 296.6
  },
  "luminance": 0.04969
}

Semantic roles & 50–950 ramp

primary
#512292
secondary
#90BC54
accent
#E543A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512292

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

Preview Lab → · Contrast checker → · Palette generator →

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