#512183#512183

#512183 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.155 H 301.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#512183
RGBrgb(81, 33, 131)
HSLhsl(269, 60%, 32%)
HSVhsv(269, 75%, 51%)
CMYKcmyk(38.2%, 74.8%, 0%, 48.6%)
CIE-LABlab(25.19, 41.90, -46.19)
CIE-LCHlch(25.19, 62.36, 312.21°)
OKLaboklab(37.38% 0.0809 -0.1317)
OKLCHoklch(37.38% 0.155 301.5)
XYZxyz(8.0329, 4.4757, 21.9090)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512183 #538321
analogous
#212283 #512183 #822183
triadic
#512183 #835121 #218351
tetradic
#512183 #832122 #538321 #218382
square
#512183 #832122 #538321 #218382
split-complementary
#512183 #838221 #228321
monochromatic
#150821 #331552 #512183 #6F2DB4 #8E4CD2

Accessibility & contrast

On white

11.08
#512183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#512183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512183
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512183#FFFFFF#000000##FFFFFF
##5121831.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512183;
/* rgb */ color: rgb(81, 33, 131);
/* oklch */ color: oklch(37.4% 0.155 301.5);
Tailwind
colors: {
  custom: {
    50: '#8761a8',
    500: '#512183',
    950: '#000000',
  },
}
SCSS
$custom: #512183;
$custom-light: #8761a8;
$custom-dark: #000000;
JSON
{
  "hex": "#512183",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 269.388,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.15456,
    "h": 301.5
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#512183
secondary
#81B54B
accent
#E34596
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #512183

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

Preview Lab → · Contrast checker → · Palette generator →

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