#512FBD#512FBD

#512FBD is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.206 H 285.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#512FBD
RGBrgb(81, 47, 189)
HSLhsl(254, 60%, 46%)
HSVhsv(254, 75%, 74%)
CMYKcmyk(57.1%, 75.1%, 0%, 25.9%)
CIE-LABlab(32.82, 51.03, -68.94)
CIE-LCHlch(32.82, 85.77, 306.51°)
OKLaboklab(44.36% 0.0545 -0.1985)
OKLCHoklch(44.36% 0.206 285.4)
XYZxyz(13.5924, 7.4557, 48.8571)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FBD #9BBD2F
analogous
#2F54BD #512FBD #982FBD
triadic
#512FBD #BD512F #2FBD51
tetradic
#512FBD #BD2F54 #9BBD2F #2FBD98
square
#512FBD #BD2F54 #9BBD2F #2FBD98
split-complementary
#512FBD #BD982F #54BD2F
monochromatic
#27175B #3C238C #512FBD #7355D5 #9B86E1

Accessibility & contrast

On white

8.43
#512FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#512FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512FBD
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FBD#FFFFFF#000000##FFFFFF
##512FBD1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#1A5774
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512fbd;
/* rgb */ color: rgb(81, 47, 189);
/* oklch */ color: oklch(44.4% 0.206 285.4);
Tailwind
colors: {
  custom: {
    50: '#8e6cd2',
    500: '#512fbd',
    950: '#000000',
  },
}
SCSS
$custom: #512fbd;
$custom-light: #8e6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#512fbd",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 254.366,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.20588,
    "h": 285.4
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#512FBD
secondary
#B8CA7E
accent
#E344BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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