#51229F#51229F

#51229F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.185 H 293.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#51229F
RGBrgb(81, 34, 159)
HSLhsl(263, 65%, 38%)
HSVhsv(263, 79%, 62%)
CMYKcmyk(49.1%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.84, 48.83, -59.17)
CIE-LCHlch(27.84, 76.71, 309.53°)
OKLaboklab(40.01% 0.0727 -0.1698)
OKLCHoklch(40.01% 0.185 293.2)
XYZxyz(10.2216, 5.3962, 33.2972)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51229F #709F22
analogous
#22319F #51229F #8F229F
triadic
#51229F #9F5122 #229F51
tetradic
#51229F #9F2231 #709F22 #229F8F
square
#51229F #9F2231 #709F22 #229F8F
split-complementary
#51229F #9F8F22 #319F22
monochromatic
#1E0C3A #37176D #51229F #6B2DD1 #8E5FDD

Accessibility & contrast

On white

10.10
#51229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#51229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51229F
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51229F#FFFFFF#000000##FFFFFF
##51229F1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#384560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51229f;
/* rgb */ color: rgb(81, 34, 159);
/* oklch */ color: oklch(40.0% 0.185 293.2);
Tailwind
colors: {
  custom: {
    50: '#8a63bc',
    500: '#51229f',
    950: '#000000',
  },
}
SCSS
$custom: #51229f;
$custom-light: #8a63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51229f",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 262.56,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40005,
    "c": 0.18471,
    "h": 293.2
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#51229F
secondary
#9BC15B
accent
#E840A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #51229F

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

Preview Lab → · Contrast checker → · Palette generator →

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