#512295#512295

#512295 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.174 H 295.8°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#512295
RGBrgb(81, 34, 149)
HSLhsl(265, 63%, 36%)
HSVhsv(265, 77%, 58%)
CMYKcmyk(45.6%, 77.2%, 0%, 41.6%)
CIE-LABlab(26.91, 46.16, -54.56)
CIE-LCHlch(26.91, 71.46, 310.23°)
OKLaboklab(39.08% 0.0755 -0.1563)
OKLCHoklch(39.08% 0.174 295.8)
XYZxyz(9.3887, 5.0631, 28.9105)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512295 #669522
analogous
#222C95 #512295 #8A2295
triadic
#512295 #955122 #229551
tetradic
#512295 #95222C #669522 #22958A
square
#512295 #95222C #669522 #22958A
split-complementary
#512295 #958A22 #2C9522
monochromatic
#1B0B31 #361763 #512295 #6C2DC7 #8D58D9

Accessibility & contrast

On white

10.43
#512295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#512295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512295
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512295#FFFFFF#000000##FFFFFF
##5122951.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#3E415A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512295;
/* rgb */ color: rgb(81, 34, 149);
/* oklch */ color: oklch(39.1% 0.174 295.8);
Tailwind
colors: {
  custom: {
    50: '#8962b5',
    500: '#512295',
    950: '#000000',
  },
}
SCSS
$custom: #512295;
$custom-light: #8962b5;
$custom-dark: #000000;
JSON
{
  "hex": "#512295",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 264.522,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39079,
    "c": 0.1736,
    "h": 295.8
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#512295
secondary
#93BD56
accent
#E642A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512295

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

Preview Lab → · Contrast checker → · Palette generator →

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