#512B83#512B83

#512B83 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.141 H 299.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#512B83
RGBrgb(81, 43, 131)
HSLhsl(266, 51%, 34%)
HSVhsv(266, 67%, 51%)
CMYKcmyk(38.2%, 67.2%, 0%, 48.6%)
CIE-LABlab(27.06, 36.69, -43.14)
CIE-LCHlch(27.06, 56.63, 310.38°)
OKLaboklab(38.72% 0.0697 -0.1228)
OKLCHoklch(38.72% 0.141 299.6)
XYZxyz(8.3529, 5.1157, 22.0157)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B83 #5D832B
analogous
#2B3183 #512B83 #7D2B83
triadic
#512B83 #83512B #2B8351
tetradic
#512B83 #832B31 #5D832B #2B837D
square
#512B83 #832B31 #5D832B #2B837D
split-complementary
#512B83 #837D2B #31832B
monochromatic
#180D27 #351C55 #512B83 #6D3AB1 #8D5ECA

Accessibility & contrast

On white

10.38
#512B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#512B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512B83
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512B83#FFFFFF#000000##FFFFFF
##512B831.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#463F53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #512b83;
/* rgb */ color: rgb(81, 43, 131);
/* oklch */ color: oklch(38.7% 0.141 299.6);
Tailwind
colors: {
  custom: {
    50: '#8667a8',
    500: '#512b83',
    950: '#000000',
  },
}
SCSS
$custom: #512b83;
$custom-light: #8667a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512b83",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 131
  },
  "hsl": {
    "h": 265.909,
    "s": 50.575,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38717,
    "c": 0.14122,
    "h": 299.6
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#512B83
secondary
#8BB05A
accent
#DA4E9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #512B83

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

Preview Lab → · Contrast checker → · Palette generator →

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