#512FBA#512FBA

#512FBA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.202 H 285.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#512FBA
RGBrgb(81, 47, 186)
HSLhsl(255, 60%, 46%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.5%, 74.7%, 0%, 27.1%)
CIE-LABlab(32.54, 50.16, -67.63)
CIE-LCHlch(32.54, 84.21, 306.57°)
OKLaboklab(44.07% 0.0553 -0.1947)
OKLCHoklch(44.07% 0.202 285.8)
XYZxyz(13.2701, 7.3268, 47.1598)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FBA #98BA2F
analogous
#2F52BA #512FBA #962FBA
triadic
#512FBA #BA512F #2FBA51
tetradic
#512FBA #BA2F52 #98BA2F #2FBA96
square
#512FBA #BA2F52 #98BA2F #2FBA96
split-complementary
#512FBA #BA962F #52BA2F
monochromatic
#261658 #3C2389 #512FBA #7253D3 #9A84E0

Accessibility & contrast

On white

8.52
#512FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#512FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FBA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FBA#FFFFFF#000000##FFFFFF
##512FBA1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#1F5672
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512fba;
/* rgb */ color: rgb(81, 47, 186);
/* oklch */ color: oklch(44.1% 0.202 285.8);
Tailwind
colors: {
  custom: {
    50: '#8d6bd0',
    500: '#512fba',
    950: '#000000',
  },
}
SCSS
$custom: #512fba;
$custom-light: #8d6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#512fba",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 254.676,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44074,
    "c": 0.20241,
    "h": 285.8
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#512FBA
secondary
#B6C97C
accent
#E345BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #512FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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