#512F97#512F97

#512F97 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.160 H 292.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#512F97
RGBrgb(81, 47, 151)
HSLhsl(260, 53%, 39%)
HSVhsv(260, 69%, 59%)
CMYKcmyk(46.4%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.45, 40.08, -51.64)
CIE-LCHlch(29.45, 65.36, 307.81°)
OKLaboklab(40.93% 0.0626 -0.1478)
OKLCHoklch(40.93% 0.16 292.9)
XYZxyz(9.9942, 6.0164, 29.9069)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F97 #75972F
analogous
#2F4197 #512F97 #852F97
triadic
#512F97 #97512F #2F9751
tetradic
#512F97 #972F41 #75972F #2F9785
square
#512F97 #972F41 #75972F #2F9785
split-complementary
#512F97 #97852F #41972F
monochromatic
#1F123A #382068 #512F97 #6B40C3 #8F6ED2

Accessibility & contrast

On white

9.53
#512F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#512F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F97
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F97#FFFFFF#000000##FFFFFF
##512F971.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#3C485F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512f97;
/* rgb */ color: rgb(81, 47, 151);
/* oklch */ color: oklch(40.9% 0.160 292.9);
Tailwind
colors: {
  custom: {
    50: '#886ab6',
    500: '#512f97',
    950: '#000000',
  },
}
SCSS
$custom: #512f97;
$custom-light: #886ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#512f97",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 259.615,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40934,
    "c": 0.16049,
    "h": 292.9
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#512F97
secondary
#9FB968
accent
#DC4CAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512F97

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

Preview Lab → · Contrast checker → · Palette generator →

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