#512FBB#512FBB

#512FBB is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.204 H 285.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#512FBB
RGBrgb(81, 47, 187)
HSLhsl(255, 60%, 46%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.7%, 74.9%, 0%, 26.7%)
CIE-LABlab(32.63, 50.45, -68.07)
CIE-LCHlch(32.63, 84.73, 306.55°)
OKLaboklab(44.17% 0.055 -0.196)
OKLCHoklch(44.17% 0.204 285.7)
XYZxyz(13.3768, 7.3694, 47.7216)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FBB #99BB2F
analogous
#2F53BB #512FBB #972FBB
triadic
#512FBB #BB512F #2FBB51
tetradic
#512FBB #BB2F53 #99BB2F #2FBB97
square
#512FBB #BB2F53 #99BB2F #2FBB97
split-complementary
#512FBB #BB972F #53BB2F
monochromatic
#271659 #3C238A #512FBB #7353D4 #9B84E0

Accessibility & contrast

On white

8.49
#512FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512FBB
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FBB#FFFFFF#000000##FFFFFF
##512FBB1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BF
Deuteranopia (green-blind)
#0049B8
Tritanopia (blue-blind)
#1D5673
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512fbb;
/* rgb */ color: rgb(81, 47, 187);
/* oklch */ color: oklch(44.2% 0.204 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e6bd1',
    500: '#512fbb',
    950: '#000000',
  },
}
SCSS
$custom: #512fbb;
$custom-light: #8e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#512fbb",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 254.571,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44169,
    "c": 0.20356,
    "h": 285.7
  },
  "luminance": 0.0737
}

Semantic roles & 50–950 ramp

primary
#512FBB
secondary
#B7C97C
accent
#E345BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #512FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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