#512FB3#512FB3

#512FB3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.194 H 287.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#512FB3
RGBrgb(81, 47, 179)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 74%, 70%)
CMYKcmyk(54.7%, 73.7%, 0%, 29.8%)
CIE-LABlab(31.89, 48.15, -64.55)
CIE-LCHlch(31.89, 80.53, 306.72°)
OKLaboklab(43.42% 0.057 -0.1857)
OKLCHoklch(43.42% 0.194 287.1)
XYZxyz(12.5441, 7.0364, 43.3363)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FB3 #91B32F
analogous
#2F4FB3 #512FB3 #932FB3
triadic
#512FB3 #B3512F #2FB351
tetradic
#512FB3 #B32F4F #91B32F #2FB393
square
#512FB3 #B32F4F #91B32F #2FB393
split-complementary
#512FB3 #B3932F #4FB32F
monochromatic
#251652 #3B2283 #512FB3 #704FD1 #977FDD

Accessibility & contrast

On white

8.72
#512FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#512FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FB3
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FB3#FFFFFF#000000##FFFFFF
##512FB31.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#27536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #512fb3;
/* rgb */ color: rgb(81, 47, 179);
/* oklch */ color: oklch(43.4% 0.194 287.1);
Tailwind
colors: {
  custom: {
    50: '#8c6bcb',
    500: '#512fb3',
    950: '#000000',
  },
}
SCSS
$custom: #512fb3;
$custom-light: #8c6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#512fb3",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 255.455,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43418,
    "c": 0.19422,
    "h": 287.1
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#512FB3
secondary
#B2C678
accent
#E246BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #512FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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