#512FBE#512FBE

#512FBE is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.207 H 285.2°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#512FBE
RGBrgb(81, 47, 190)
HSLhsl(254, 60%, 46%)
HSVhsv(254, 75%, 75%)
CMYKcmyk(57.4%, 75.3%, 0%, 25.5%)
CIE-LABlab(32.92, 51.32, -69.37)
CIE-LCHlch(32.92, 86.29, 306.49°)
OKLaboklab(44.46% 0.0543 -0.1998)
OKLCHoklch(44.46% 0.207 285.2)
XYZxyz(13.7013, 7.4992, 49.4307)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FBE #9CBE2F
analogous
#2F54BE #512FBE #992FBE
triadic
#512FBE #BE512F #2FBE51
tetradic
#512FBE #BE2F54 #9CBE2F #2FBE99
square
#512FBE #BE2F54 #9CBE2F #2FBE99
split-complementary
#512FBE #BE992F #54BE2F
monochromatic
#27175C #3C238D #512FBE #7455D5 #9C86E1

Accessibility & contrast

On white

8.40
#512FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#512FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FBE
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FBE#FFFFFF#000000##FFFFFF
##512FBE1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C2
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#185775
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512fbe;
/* rgb */ color: rgb(81, 47, 190);
/* oklch */ color: oklch(44.5% 0.207 285.2);
Tailwind
colors: {
  custom: {
    50: '#8e6cd3',
    500: '#512fbe',
    950: '#000000',
  },
}
SCSS
$custom: #512fbe;
$custom-light: #8e6cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#512fbe",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 254.266,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44455,
    "c": 0.20703,
    "h": 285.2
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#512FBE
secondary
#B8CB7E
accent
#E344BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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