#512083#512083

#512083 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.156 H 301.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#512083
RGBrgb(81, 32, 131)
HSLhsl(270, 61%, 32%)
HSVhsv(270, 76%, 51%)
CMYKcmyk(38.2%, 75.6%, 0%, 48.6%)
CIE-LABlab(25.02, 42.38, -46.46)
CIE-LCHlch(25.02, 62.88, 312.37°)
OKLaboklab(37.26% 0.0819 -0.1325)
OKLCHoklch(37.26% 0.156 301.7)
XYZxyz(8.0056, 4.4210, 21.8999)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512083 #528320
analogous
#202183 #512083 #832083
triadic
#512083 #835120 #208351
tetradic
#512083 #832021 #528320 #208383
square
#512083 #832021 #528320 #208383
split-complementary
#512083 #838320 #218320
monochromatic
#140821 #331452 #512083 #6F2CB4 #8E4AD3

Accessibility & contrast

On white

11.15
#512083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#512083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512083
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512083#FFFFFF#000000##FFFFFF
##5120831.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#463950
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512083;
/* rgb */ color: rgb(81, 32, 131);
/* oklch */ color: oklch(37.3% 0.156 301.7);
Tailwind
colors: {
  custom: {
    50: '#8760a8',
    500: '#512083',
    950: '#000000',
  },
}
SCSS
$custom: #512083;
$custom-light: #8760a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512083",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 131
  },
  "hsl": {
    "h": 269.697,
    "s": 60.736,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37258,
    "c": 0.15577,
    "h": 301.7
  },
  "luminance": 0.04421
}

Semantic roles & 50–950 ramp

primary
#512083
secondary
#80B649
accent
#E44495
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512083

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

Preview Lab → · Contrast checker → · Palette generator →

#512083 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva