#512191#512191

#512191 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.170 H 297.1°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#512191
RGBrgb(81, 33, 145)
HSLhsl(266, 63%, 35%)
HSVhsv(266, 77%, 57%)
CMYKcmyk(44.1%, 77.2%, 0%, 43.1%)
CIE-LABlab(26.39, 45.56, -52.94)
CIE-LCHlch(26.39, 69.85, 310.71°)
OKLaboklab(38.6% 0.0775 -0.1515)
OKLCHoklch(38.6% 0.17 297.1)
XYZxyz(9.0467, 4.8812, 27.2481)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512191 #619121
analogous
#212991 #512191 #892191
triadic
#512191 #915121 #219151
tetradic
#512191 #912129 #619121 #219189
square
#512191 #912129 #619121 #219189
split-complementary
#512191 #918921 #299121
monochromatic
#190A2D #35165F #512191 #6D2CC3 #8D54D8

Accessibility & contrast

On white

10.63
#512191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#512191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512191
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512191#FFFFFF#000000##FFFFFF
##5121911.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#403F58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512191;
/* rgb */ color: rgb(81, 33, 145);
/* oklch */ color: oklch(38.6% 0.170 297.1);
Tailwind
colors: {
  custom: {
    50: '#8862b2',
    500: '#512191',
    950: '#000000',
  },
}
SCSS
$custom: #512191;
$custom-light: #8862b2;
$custom-dark: #000000;
JSON
{
  "hex": "#512191",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 265.714,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.17022,
    "h": 297.1
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

primary
#512191
secondary
#8EBC52
accent
#E642A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512191

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

Preview Lab → · Contrast checker → · Palette generator →

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