#512094#512094

#512094 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.175 H 296.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#512094
RGBrgb(81, 32, 148)
HSLhsl(265, 64%, 35%)
HSVhsv(265, 78%, 58%)
CMYKcmyk(45.3%, 78.4%, 0%, 42%)
CIE-LABlab(26.51, 46.80, -54.61)
CIE-LCHlch(26.51, 71.92, 310.60°)
OKLaboklab(38.77% 0.0775 -0.1564)
OKLCHoklch(38.77% 0.175 296.4)
XYZxyz(9.2537, 4.9203, 28.4734)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512094 #639420
analogous
#202994 #512094 #8B2094
triadic
#512094 #945120 #209451
tetradic
#512094 #942029 #639420 #20948B
square
#512094 #942029 #639420 #20948B
split-complementary
#512094 #948B20 #299420
monochromatic
#1A0A2F #351562 #512094 #6D2BC6 #8D54DA

Accessibility & contrast

On white

10.58
#512094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512094
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512094#FFFFFF#000000##FFFFFF
##5120941.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#3F4059
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512094;
/* rgb */ color: rgb(81, 32, 148);
/* oklch */ color: oklch(38.8% 0.175 296.4);
Tailwind
colors: {
  custom: {
    50: '#8961b4',
    500: '#512094',
    950: '#000000',
  },
}
SCSS
$custom: #512094;
$custom-light: #8961b4;
$custom-dark: #000000;
JSON
{
  "hex": "#512094",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 265.345,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38765,
    "c": 0.17459,
    "h": 296.4
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#512094
secondary
#90BE52
accent
#E740A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512094

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

Preview Lab → · Contrast checker → · Palette generator →

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