#512DBE#512DBE

#512DBE is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.209 H 285.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#512DBE
RGBrgb(81, 45, 190)
HSLhsl(255, 62%, 46%)
HSVhsv(255, 76%, 75%)
CMYKcmyk(57.4%, 76.3%, 0%, 25.5%)
CIE-LABlab(32.58, 52.29, -69.93)
CIE-LCHlch(32.58, 87.32, 306.79°)
OKLaboklab(44.22% 0.0557 -0.2014)
OKLCHoklch(44.22% 0.209 285.5)
XYZxyz(13.6232, 7.3430, 49.4047)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DBE #9ABE2D
analogous
#2D51BE #512DBE #992DBE
triadic
#512DBE #BE512D #2DBE51
tetradic
#512DBE #BE2D51 #9ABE2D #2DBE99
square
#512DBE #BE2D51 #9ABE2D #2DBE99
split-complementary
#512DBE #BE992D #51BE2D
monochromatic
#27165B #3C218D #512DBE #7352D6 #9B84E2

Accessibility & contrast

On white

8.51
#512DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512DBE
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DBE#FFFFFF#000000##FFFFFF
##512DBE1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C2
Deuteranopia (green-blind)
#0048BB
Tritanopia (blue-blind)
#185674
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512dbe;
/* rgb */ color: rgb(81, 45, 190);
/* oklch */ color: oklch(44.2% 0.209 285.5);
Tailwind
colors: {
  custom: {
    50: '#8e6ad3',
    500: '#512dbe',
    950: '#000000',
  },
}
SCSS
$custom: #512dbe;
$custom-light: #8e6ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#512dbe",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 254.897,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44215,
    "c": 0.20897,
    "h": 285.5
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

primary
#512DBE
secondary
#B7CB7C
accent
#E543BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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