#51226B#51226B

#51226B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.126 H 311.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#51226B
RGBrgb(81, 34, 107)
HSLhsl(279, 52%, 28%)
HSVhsv(279, 68%, 42%)
CMYKcmyk(24.3%, 68.2%, 0%, 58%)
CIE-LABlab(23.52, 35.35, -33.57)
CIE-LCHlch(23.52, 48.75, 316.48°)
OKLaboklab(35.61% 0.0831 -0.0946)
OKLCHoklch(35.61% 0.126 311.3)
XYZxyz(6.6187, 3.9551, 14.3218)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51226B #3C6B22
analogous
#2C226B #51226B #6B2260
triadic
#51226B #6B5122 #226B51
tetradic
#51226B #6B2C22 #3C6B22 #22606B
square
#51226B #6B2C22 #3C6B22 #22606B
split-complementary
#51226B #606B22 #226B2C
monochromatic
#120717 #2E133D #51226B #743199 #9644C4

Accessibility & contrast

On white

11.73
#51226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#51226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51226B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51226B#FFFFFF#000000##FFFFFF
##51226B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#4E3143
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51226b;
/* rgb */ color: rgb(81, 34, 107);
/* oklch */ color: oklch(35.6% 0.126 311.3);
Tailwind
colors: {
  custom: {
    50: '#856196',
    500: '#51226b',
    950: '#000000',
  },
}
SCSS
$custom: #51226b;
$custom-light: #856196;
$custom-dark: #000000;
JSON
{
  "hex": "#51226b",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 278.63,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35607,
    "c": 0.12591,
    "h": 311.3
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#51226B
secondary
#689F4A
accent
#DB4D7F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51226B

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

Preview Lab → · Contrast checker → · Palette generator →

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