#512F92#512F92

#512F92 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.154 H 294.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#512F92
RGBrgb(81, 47, 146)
HSLhsl(261, 51%, 38%)
HSVhsv(261, 68%, 57%)
CMYKcmyk(44.5%, 67.8%, 0%, 42.7%)
CIE-LABlab(29.05, 38.65, -49.23)
CIE-LCHlch(29.05, 62.59, 308.13°)
OKLaboklab(40.52% 0.0633 -0.1407)
OKLCHoklch(40.52% 0.154 294.2)
XYZxyz(9.5968, 5.8574, 27.8135)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F92 #70922F
analogous
#2F3F92 #512F92 #822F92
triadic
#512F92 #92512F #2F9251
tetradic
#512F92 #922F3F #70922F #2F9282
square
#512F92 #922F3F #70922F #2F9282
split-complementary
#512F92 #92822F #3F922F
monochromatic
#1E1135 #372064 #512F92 #6B3EC0 #8E6CD0

Accessibility & contrast

On white

9.67
#512F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#512F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F92
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F92#FFFFFF#000000##FFFFFF
##512F921.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#3F475C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #512f92;
/* rgb */ color: rgb(81, 47, 146);
/* oklch */ color: oklch(40.5% 0.154 294.2);
Tailwind
colors: {
  custom: {
    50: '#886ab3',
    500: '#512f92',
    950: '#000000',
  },
}
SCSS
$custom: #512f92;
$custom-light: #886ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#512f92",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 260.606,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40517,
    "c": 0.1543,
    "h": 294.2
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#512F92
secondary
#9BB766
accent
#DB4DAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512F92

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

Preview Lab → · Contrast checker → · Palette generator →

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