#512DBF#512DBF

#512DBF is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.210 H 285.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#512DBF
RGBrgb(81, 45, 191)
HSLhsl(255, 62%, 46%)
HSVhsv(255, 76%, 75%)
CMYKcmyk(57.6%, 76.4%, 0%, 25.1%)
CIE-LABlab(32.67, 52.57, -70.36)
CIE-LCHlch(32.67, 87.84, 306.77°)
OKLaboklab(44.31% 0.0554 -0.2027)
OKLCHoklch(44.31% 0.21 285.3)
XYZxyz(13.7328, 7.3869, 49.9823)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512DBF #9BBF2D
analogous
#2D52BF #512DBF #9A2DBF
triadic
#512DBF #BF512D #2DBF51
tetradic
#512DBF #BF2D52 #9BBF2D #2DBF9A
square
#512DBF #BF2D52 #9BBF2D #2DBF9A
split-complementary
#512DBF #BF9A2D #52BF2D
monochromatic
#27165C #3C218D #512DBF #7353D6 #9B84E2

Accessibility & contrast

On white

8.48
#512DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#512DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512DBF
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512DBF#FFFFFF#000000##FFFFFF
##512DBF1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#165775
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512dbf;
/* rgb */ color: rgb(81, 45, 191);
/* oklch */ color: oklch(44.3% 0.210 285.3);
Tailwind
colors: {
  custom: {
    50: '#8e6bd4',
    500: '#512dbf',
    950: '#000000',
  },
}
SCSS
$custom: #512dbf;
$custom-light: #8e6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#512dbf",
  "rgb": {
    "r": 81,
    "g": 45,
    "b": 191
  },
  "hsl": {
    "h": 254.795,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44311,
    "c": 0.21012,
    "h": 285.3
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #512DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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