#512290#512290

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

Color values

HEX#512290
RGBrgb(81, 34, 144)
HSLhsl(266, 62%, 35%)
HSVhsv(266, 76%, 56%)
CMYKcmyk(43.8%, 76.4%, 0%, 43.5%)
CIE-LABlab(26.47, 44.83, -52.20)
CIE-LCHlch(26.47, 68.81, 310.66°)
OKLaboklab(38.63% 0.0769 -0.1494)
OKLCHoklch(38.63% 0.168 297.2)
XYZxyz(8.9981, 4.9068, 26.8532)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512290 #619022
analogous
#222A90 #512290 #882290
triadic
#512290 #905122 #229051
tetradic
#512290 #90222A #619022 #229088
square
#512290 #90222A #619022 #229088
split-complementary
#512290 #908822 #2A9022
monochromatic
#190B2D #35165E #512290 #6D2EC2 #8D55D7

Accessibility & contrast

On white

10.60
#512290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512290
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512290#FFFFFF#000000##FFFFFF
##5122901.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#413F57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #512290;
/* rgb */ color: rgb(81, 34, 144);
/* oklch */ color: oklch(38.6% 0.168 297.2);
Tailwind
colors: {
  custom: {
    50: '#8862b1',
    500: '#512290',
    950: '#000000',
  },
}
SCSS
$custom: #512290;
$custom-light: #8862b1;
$custom-dark: #000000;
JSON
{
  "hex": "#512290",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 265.636,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38628,
    "c": 0.16799,
    "h": 297.2
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#512290
secondary
#8EBB53
accent
#E543A0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #512290

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

Preview Lab → · Contrast checker → · Palette generator →

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