#51226F#51226F

#51226F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.130 H 309.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#51226F
RGBrgb(81, 34, 111)
HSLhsl(277, 53%, 28%)
HSVhsv(277, 69%, 44%)
CMYKcmyk(27%, 69.4%, 0%, 56.5%)
CIE-LABlab(23.81, 36.33, -35.70)
CIE-LCHlch(23.81, 50.93, 315.50°)
OKLaboklab(35.9% 0.0828 -0.1009)
OKLCHoklch(35.9% 0.13 309.4)
XYZxyz(6.8340, 4.0412, 15.4559)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51226F #406F22
analogous
#2A226F #51226F #6F2266
triadic
#51226F #6F5122 #226F51
tetradic
#51226F #6F2A22 #406F22 #22666F
square
#51226F #6F2A22 #406F22 #22666F
split-complementary
#51226F #666F22 #226F2A
monochromatic
#110717 #2F1440 #51226F #73309E #9445C6

Accessibility & contrast

On white

11.61
#51226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#51226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51226F
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51226F#FFFFFF#000000##FFFFFF
##51226F1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#15396D
Tritanopia (blue-blind)
#4D3245
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #51226f;
/* rgb */ color: rgb(81, 34, 111);
/* oklch */ color: oklch(35.9% 0.130 309.4);
Tailwind
colors: {
  custom: {
    50: '#856199',
    500: '#51226f',
    950: '#000000',
  },
}
SCSS
$custom: #51226f;
$custom-light: #856199;
$custom-dark: #000000;
JSON
{
  "hex": "#51226f",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 276.623,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35903,
    "c": 0.13048,
    "h": 309.4
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#51226F
secondary
#6DA24A
accent
#DD4B84
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #51226F

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

Preview Lab → · Contrast checker → · Palette generator →

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