#512F93#512F93

#512F93 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.156 H 294.0°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#512F93
RGBrgb(81, 47, 147)
HSLhsl(260, 52%, 38%)
HSVhsv(260, 68%, 58%)
CMYKcmyk(44.9%, 68%, 0%, 42.4%)
CIE-LABlab(29.13, 38.93, -49.71)
CIE-LCHlch(29.13, 63.14, 308.07°)
OKLaboklab(40.6% 0.0632 -0.1421)
OKLCHoklch(40.6% 0.156 294)
XYZxyz(9.6749, 5.8887, 28.2250)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F93 #71932F
analogous
#2F3F93 #512F93 #832F93
triadic
#512F93 #93512F #2F9351
tetradic
#512F93 #932F3F #71932F #2F9383
square
#512F93 #932F3F #71932F #2F9383
split-complementary
#512F93 #93832F #3F932F
monochromatic
#1E1136 #372065 #512F93 #6B3EC1 #8E6CD0

Accessibility & contrast

On white

9.64
#512F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#512F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F93
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F93#FFFFFF#000000##FFFFFF
##512F931.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#004391
Tritanopia (blue-blind)
#3F475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512f93;
/* rgb */ color: rgb(81, 47, 147);
/* oklch */ color: oklch(40.6% 0.156 294.0);
Tailwind
colors: {
  custom: {
    50: '#886ab3',
    500: '#512f93',
    950: '#000000',
  },
}
SCSS
$custom: #512f93;
$custom-light: #886ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#512f93",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 147
  },
  "hsl": {
    "h": 260.4,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.406,
    "c": 0.15554,
    "h": 294
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#512F93
secondary
#9CB766
accent
#DB4DAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512F93

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

Preview Lab → · Contrast checker → · Palette generator →

#512F93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva