#512093#512093

#512093 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.173 H 296.7°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#512093
RGBrgb(81, 32, 147)
HSLhsl(266, 64%, 35%)
HSVhsv(266, 78%, 58%)
CMYKcmyk(44.9%, 78.2%, 0%, 42.4%)
CIE-LABlab(26.42, 46.54, -54.14)
CIE-LCHlch(26.42, 71.39, 310.68°)
OKLaboklab(38.67% 0.0778 -0.1551)
OKLCHoklch(38.67% 0.173 296.7)
XYZxyz(9.1749, 4.8887, 28.0583)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512093 #629320
analogous
#202993 #512093 #8A2093
triadic
#512093 #935120 #209351
tetradic
#512093 #932029 #629320 #20938A
square
#512093 #932029 #629320 #20938A
split-complementary
#512093 #938A20 #299320
monochromatic
#1A0A2E #351561 #512093 #6D2BC5 #8D54DA

Accessibility & contrast

On white

10.62
#512093 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512093
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512093#FFFFFF#000000##FFFFFF
##5120931.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#3F3F59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #512093;
/* rgb */ color: rgb(81, 32, 147);
/* oklch */ color: oklch(38.7% 0.173 296.7);
Tailwind
colors: {
  custom: {
    50: '#8961b4',
    500: '#512093',
    950: '#000000',
  },
}
SCSS
$custom: #512093;
$custom-light: #8961b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512093",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 147
  },
  "hsl": {
    "h": 265.565,
    "s": 64.246,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.17349,
    "h": 296.7
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#512093
secondary
#8FBD52
accent
#E741A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512093

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

Preview Lab → · Contrast checker → · Palette generator →

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