#512FB2#512FB2

#512FB2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.193 H 287.2°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#512FB2
RGBrgb(81, 47, 178)
HSLhsl(256, 58%, 44%)
HSVhsv(256, 74%, 70%)
CMYKcmyk(54.5%, 73.6%, 0%, 30.2%)
CIE-LABlab(31.80, 47.86, -64.10)
CIE-LCHlch(31.80, 80.00, 306.74°)
OKLaboklab(43.33% 0.0572 -0.1844)
OKLCHoklch(43.33% 0.193 287.2)
XYZxyz(12.4433, 6.9961, 42.8056)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FB2 #90B22F
analogous
#2F4EB2 #512FB2 #932FB2
triadic
#512FB2 #B2512F #2FB251
tetradic
#512FB2 #B22F4E #90B22F #2FB293
square
#512FB2 #B22F4E #90B22F #2FB293
split-complementary
#512FB2 #B2932F #4EB22F
monochromatic
#251551 #3B2282 #512FB2 #704ED0 #977EDD

Accessibility & contrast

On white

8.75
#512FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#512FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FB2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FB2#FFFFFF#000000##FFFFFF
##512FB21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#28536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512fb2;
/* rgb */ color: rgb(81, 47, 178);
/* oklch */ color: oklch(43.3% 0.193 287.2);
Tailwind
colors: {
  custom: {
    50: '#8c6bca',
    500: '#512fb2',
    950: '#000000',
  },
}
SCSS
$custom: #512fb2;
$custom-light: #8c6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#512fb2",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 255.573,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43326,
    "c": 0.19305,
    "h": 287.2
  },
  "luminance": 0.06997
}

Semantic roles & 50–950 ramp

primary
#512FB2
secondary
#B1C677
accent
#E146B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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