#512FBF#512FBF

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

Color values

HEX#512FBF
RGBrgb(81, 47, 191)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 75%, 75%)
CMYKcmyk(57.6%, 75.4%, 0%, 25.1%)
CIE-LABlab(33.01, 51.60, -69.80)
CIE-LCHlch(33.01, 86.81, 306.47°)
OKLaboklab(44.55% 0.054 -0.2011)
OKLCHoklch(44.55% 0.208 285)
XYZxyz(13.8110, 7.5431, 50.0083)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FBF #9DBF2F
analogous
#2F55BF #512FBF #992FBF
triadic
#512FBF #BF512F #2FBF51
tetradic
#512FBF #BF2F55 #9DBF2F #2FBF99
square
#512FBF #BF2F55 #9DBF2F #2FBF99
split-complementary
#512FBF #BF992F #55BF2F
monochromatic
#27175D #3C238E #512FBF #7456D5 #9C87E1

Accessibility & contrast

On white

8.37
#512FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#512FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FBF
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FBF#FFFFFF#000000##FFFFFF
##512FBF1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#0049BC
Tritanopia (blue-blind)
#165875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #512fbf;
/* rgb */ color: rgb(81, 47, 191);
/* oklch */ color: oklch(44.5% 0.208 285.0);
Tailwind
colors: {
  custom: {
    50: '#8e6cd4',
    500: '#512fbf',
    950: '#000000',
  },
}
SCSS
$custom: #512fbf;
$custom-light: #8e6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#512fbf",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 254.167,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.20819,
    "h": 285
  },
  "luminance": 0.07544
}

Semantic roles & 50–950 ramp

primary
#512FBF
secondary
#B9CB7F
accent
#E444BE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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