#512293#512293

#512293 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.171 H 296.4°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#512293
RGBrgb(81, 34, 147)
HSLhsl(265, 62%, 35%)
HSVhsv(265, 77%, 58%)
CMYKcmyk(44.9%, 76.9%, 0%, 42.4%)
CIE-LABlab(26.73, 45.63, -53.62)
CIE-LCHlch(26.73, 70.40, 310.40°)
OKLaboklab(38.9% 0.0761 -0.1535)
OKLCHoklch(38.9% 0.171 296.4)
XYZxyz(9.2304, 4.9998, 28.0768)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512293 #649322
analogous
#222B93 #512293 #892293
triadic
#512293 #935122 #229351
tetradic
#512293 #93222B #649322 #229389
square
#512293 #93222B #649322 #229389
split-complementary
#512293 #938922 #2B9322
monochromatic
#1A0B30 #361761 #512293 #6C2DC5 #8D57D8

Accessibility & contrast

On white

10.50
#512293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#512293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512293
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512293#FFFFFF#000000##FFFFFF
##5122931.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#3F4059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512293;
/* rgb */ color: rgb(81, 34, 147);
/* oklch */ color: oklch(38.9% 0.171 296.4);
Tailwind
colors: {
  custom: {
    50: '#8962b4',
    500: '#512293',
    950: '#000000',
  },
}
SCSS
$custom: #512293;
$custom-light: #8962b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512293",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 264.956,
    "s": 62.431,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38897,
    "c": 0.17136,
    "h": 296.4
  },
  "luminance": 0.05
}

Semantic roles & 50–950 ramp

primary
#512293
secondary
#91BC55
accent
#E542A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512293

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

Preview Lab → · Contrast checker → · Palette generator →

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