#512F94#512F94

#512F94 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.157 H 293.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#512F94
RGBrgb(81, 47, 148)
HSLhsl(260, 52%, 38%)
HSVhsv(260, 68%, 58%)
CMYKcmyk(45.3%, 68.2%, 0%, 42%)
CIE-LABlab(29.21, 39.22, -50.20)
CIE-LCHlch(29.21, 63.70, 308.00°)
OKLaboklab(40.68% 0.063 -0.1435)
OKLCHoklch(40.68% 0.157 293.7)
XYZxyz(9.7537, 5.9202, 28.6400)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F94 #72942F
analogous
#2F3F94 #512F94 #832F94
triadic
#512F94 #94512F #2F9451
tetradic
#512F94 #942F3F #72942F #2F9483
square
#512F94 #942F3F #72942F #2F9483
split-complementary
#512F94 #94832F #3F942F
monochromatic
#1E1137 #382066 #512F94 #6B3EC2 #8E6DD1

Accessibility & contrast

On white

9.62
#512F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512F94
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F94#FFFFFF#000000##FFFFFF
##512F941.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#3E475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #512f94;
/* rgb */ color: rgb(81, 47, 148);
/* oklch */ color: oklch(40.7% 0.157 293.7);
Tailwind
colors: {
  custom: {
    50: '#886ab4',
    500: '#512f94',
    950: '#000000',
  },
}
SCSS
$custom: #512f94;
$custom-light: #886ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#512f94",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 260.198,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.15678,
    "h": 293.7
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512F94

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

Preview Lab → · Contrast checker → · Palette generator →

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