#512F95#512F95

#512F95 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.158 H 293.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#512F95
RGBrgb(81, 47, 149)
HSLhsl(260, 52%, 38%)
HSVhsv(260, 68%, 58%)
CMYKcmyk(45.6%, 68.5%, 0%, 41.6%)
CIE-LABlab(29.29, 39.50, -50.68)
CIE-LCHlch(29.29, 64.26, 307.94°)
OKLaboklab(40.77% 0.0629 -0.145)
OKLCHoklch(40.77% 0.158 293.4)
XYZxyz(9.8332, 5.9520, 29.0587)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F95 #73952F
analogous
#2F4095 #512F95 #842F95
triadic
#512F95 #95512F #2F9551
tetradic
#512F95 #952F40 #73952F #2F9584
square
#512F95 #952F40 #73952F #2F9584
split-complementary
#512F95 #95842F #40952F
monochromatic
#1E1238 #382066 #512F95 #6B3FC2 #8F6DD1

Accessibility & contrast

On white

9.59
#512F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#512F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F95
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F95#FFFFFF#000000##FFFFFF
##512F951.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#3D485E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512f95;
/* rgb */ color: rgb(81, 47, 149);
/* oklch */ color: oklch(40.8% 0.158 293.4);
Tailwind
colors: {
  custom: {
    50: '#886ab5',
    500: '#512f95',
    950: '#000000',
  },
}
SCSS
$custom: #512f95;
$custom-light: #886ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#512f95",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 260,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40766,
    "c": 0.15802,
    "h": 293.4
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#512F95
secondary
#9DB867
accent
#DB4CAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #512F95

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

Preview Lab → · Contrast checker → · Palette generator →

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