#512CBF#512CBF

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

Color values

HEX#512CBF
RGBrgb(81, 44, 191)
HSLhsl(255, 63%, 46%)
HSVhsv(255, 77%, 75%)
CMYKcmyk(57.6%, 77%, 0%, 25.1%)
CIE-LABlab(32.51, 53.05, -70.64)
CIE-LCHlch(32.51, 88.34, 306.91°)
OKLaboklab(44.2% 0.0561 -0.2035)
OKLCHoklch(44.2% 0.211 285.4)
XYZxyz(13.6951, 7.3115, 49.9697)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512CBF #9ABF2C
analogous
#2C50BF #512CBF #9A2CBF
triadic
#512CBF #BF512C #2CBF51
tetradic
#512CBF #BF2C50 #9ABF2C #2CBF9A
square
#512CBF #BF2C50 #9ABF2C #2CBF9A
split-complementary
#512CBF #BF9A2C #50BF2C
monochromatic
#27155C #3C218D #512CBF #7351D7 #9B83E2

Accessibility & contrast

On white

8.53
#512CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#512CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512CBF
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512CBF#FFFFFF#000000##FFFFFF
##512CBF1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#165674
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #512cbf;
/* rgb */ color: rgb(81, 44, 191);
/* oklch */ color: oklch(44.2% 0.211 285.4);
Tailwind
colors: {
  custom: {
    50: '#8e6ad4',
    500: '#512cbf',
    950: '#000000',
  },
}
SCSS
$custom: #512cbf;
$custom-light: #8e6ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#512cbf",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 255.102,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44195,
    "c": 0.21106,
    "h": 285.4
  },
  "luminance": 0.07312
}

Semantic roles & 50–950 ramp

primary
#512CBF
secondary
#B7CC7B
accent
#E642BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #512CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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