#51229E#51229E

#51229E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.184 H 293.4°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#51229E
RGBrgb(81, 34, 158)
HSLhsl(263, 65%, 38%)
HSVhsv(263, 78%, 62%)
CMYKcmyk(48.7%, 78.5%, 0%, 38%)
CIE-LABlab(27.74, 48.56, -58.71)
CIE-LCHlch(27.74, 76.19, 309.59°)
OKLaboklab(39.91% 0.073 -0.1685)
OKLCHoklch(39.91% 0.184 293.4)
XYZxyz(10.1352, 5.3617, 32.8420)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51229E #6F9E22
analogous
#22319E #51229E #8F229E
triadic
#51229E #9E5122 #229E51
tetradic
#51229E #9E2231 #6F9E22 #229E8F
square
#51229E #9E2231 #6F9E22 #229E8F
split-complementary
#51229E #9E8F22 #319E22
monochromatic
#1D0C39 #37176C #51229E #6B2DD0 #8E5EDC

Accessibility & contrast

On white

10.13
#51229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#51229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51229E
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51229E#FFFFFF#000000##FFFFFF
##51229E1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#39455F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51229e;
/* rgb */ color: rgb(81, 34, 158);
/* oklch */ color: oklch(39.9% 0.184 293.4);
Tailwind
colors: {
  custom: {
    50: '#8a63bc',
    500: '#51229e',
    950: '#000000',
  },
}
SCSS
$custom: #51229e;
$custom-light: #8a63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51229e",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 262.742,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.18361,
    "h": 293.4
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#51229E
secondary
#9AC15B
accent
#E840A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51229E

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

Preview Lab → · Contrast checker → · Palette generator →

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