#512FBC#512FBC

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

Color values

HEX#512FBC
RGBrgb(81, 47, 188)
HSLhsl(254, 60%, 46%)
HSVhsv(254, 75%, 74%)
CMYKcmyk(56.9%, 75%, 0%, 26.3%)
CIE-LABlab(32.73, 50.74, -68.50)
CIE-LCHlch(32.73, 85.25, 306.53°)
OKLaboklab(44.26% 0.0548 -0.1973)
OKLCHoklch(44.26% 0.205 285.5)
XYZxyz(13.4842, 7.4124, 48.2874)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512FBC #9ABC2F
analogous
#2F53BC #512FBC #972FBC
triadic
#512FBC #BC512F #2FBC51
tetradic
#512FBC #BC2F53 #9ABC2F #2FBC97
square
#512FBC #BC2F53 #9ABC2F #2FBC97
split-complementary
#512FBC #BC972F #53BC2F
monochromatic
#27175A #3C238B #512FBC #7354D4 #9B85E0

Accessibility & contrast

On white

8.46
#512FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512FBC
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512FBC#FFFFFF#000000##FFFFFF
##512FBC1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#1B5773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #512fbc;
/* rgb */ color: rgb(81, 47, 188);
/* oklch */ color: oklch(44.3% 0.205 285.5);
Tailwind
colors: {
  custom: {
    50: '#8e6bd1',
    500: '#512fbc',
    950: '#000000',
  },
}
SCSS
$custom: #512fbc;
$custom-light: #8e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#512fbc",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 254.468,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44264,
    "c": 0.20473,
    "h": 285.5
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#512FBC
secondary
#B7CA7D
accent
#E345BD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #512FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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