#512993#512993

#512993 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.163 H 295.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#512993
RGBrgb(81, 41, 147)
HSLhsl(263, 56%, 37%)
HSVhsv(263, 72%, 58%)
CMYKcmyk(44.9%, 72.1%, 0%, 42.4%)
CIE-LABlab(27.96, 42.17, -51.62)
CIE-LCHlch(27.96, 66.66, 309.25°)
OKLaboklab(39.76% 0.0695 -0.1477)
OKLCHoklch(39.76% 0.163 295.2)
XYZxyz(9.4513, 5.4416, 28.1505)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512993 #6B9329
analogous
#293693 #512993 #862993
triadic
#512993 #935129 #299351
tetradic
#512993 #932936 #6B9329 #299386
square
#512993 #932936 #6B9329 #299386
split-complementary
#512993 #938629 #369329
monochromatic
#1C0E33 #371C63 #512993 #6B36C3 #8D63D3

Accessibility & contrast

On white

10.06
#512993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#512993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512993
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512993#FFFFFF#000000##FFFFFF
##5129931.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004396
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#3F445B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #512993;
/* rgb */ color: rgb(81, 41, 147);
/* oklch */ color: oklch(39.8% 0.163 295.2);
Tailwind
colors: {
  custom: {
    50: '#8866b4',
    500: '#512993',
    950: '#000000',
  },
}
SCSS
$custom: #512993;
$custom-light: #8866b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512993",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 147
  },
  "hsl": {
    "h": 262.642,
    "s": 56.383,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39762,
    "c": 0.16323,
    "h": 295.2
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#512993
secondary
#97B95E
accent
#E048A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512993

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

Preview Lab → · Contrast checker → · Palette generator →

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