#51209F#51209F

#51209F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.187 H 293.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#51209F
RGBrgb(81, 32, 159)
HSLhsl(263, 66%, 37%)
HSVhsv(263, 80%, 62%)
CMYKcmyk(49.1%, 79.9%, 0%, 37.6%)
CIE-LABlab(27.53, 49.70, -59.66)
CIE-LCHlch(27.53, 77.65, 309.80°)
OKLaboklab(39.79% 0.0742 -0.1713)
OKLCHoklch(39.79% 0.187 293.4)
XYZxyz(10.1661, 5.2852, 33.2787)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51209F #6E9F20
analogous
#202E9F #51209F #91209F
triadic
#51209F #9F5120 #209F51
tetradic
#51209F #9F202E #6E9F20 #209F91
square
#51209F #9F202E #6E9F20 #209F91
split-complementary
#51209F #9F9120 #2E9F20
monochromatic
#1D0B39 #37166C #51209F #6B2AD2 #8E5BDE

Accessibility & contrast

On white

10.21
#51209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51209F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51209F#FFFFFF#000000##FFFFFF
##51209F1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#384460
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51209f;
/* rgb */ color: rgb(81, 32, 159);
/* oklch */ color: oklch(39.8% 0.187 293.4);
Tailwind
colors: {
  custom: {
    50: '#8a62bc',
    500: '#51209f',
    950: '#000000',
  },
}
SCSS
$custom: #51209f;
$custom-light: #8a62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51209f",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 263.15,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39794,
    "c": 0.18664,
    "h": 293.4
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#51209F
secondary
#99C259
accent
#E93EA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #51209F

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

Preview Lab → · Contrast checker → · Palette generator →

#51209F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva