#51226C#51226C

#51226C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.127 H 310.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#51226C
RGBrgb(81, 34, 108)
HSLhsl(278, 52%, 28%)
HSVhsv(278, 69%, 42%)
CMYKcmyk(25%, 68.5%, 0%, 57.6%)
CIE-LABlab(23.59, 35.60, -34.11)
CIE-LCHlch(23.59, 49.30, 316.22°)
OKLaboklab(35.68% 0.083 -0.0962)
OKLCHoklch(35.68% 0.127 310.8)
XYZxyz(6.6716, 3.9762, 14.6005)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51226C #3D6C22
analogous
#2C226C #51226C #6C2262
triadic
#51226C #6C5122 #226C51
tetradic
#51226C #6C2C22 #3D6C22 #22626C
square
#51226C #6C2C22 #3D6C22 #22626C
split-complementary
#51226C #626C22 #226C2C
monochromatic
#110717 #2E133D #51226C #74319B #9544C4

Accessibility & contrast

On white

11.70
#51226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#51226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51226C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51226C#FFFFFF#000000##FFFFFF
##51226C1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#19396A
Tritanopia (blue-blind)
#4E3144
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51226c;
/* rgb */ color: rgb(81, 34, 108);
/* oklch */ color: oklch(35.7% 0.127 310.8);
Tailwind
colors: {
  custom: {
    50: '#856197',
    500: '#51226c',
    950: '#000000',
  },
}
SCSS
$custom: #51226c;
$custom-light: #856197;
$custom-dark: #000000;
JSON
{
  "hex": "#51226c",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 278.108,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3568,
    "c": 0.12705,
    "h": 310.8
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#51226C
secondary
#69A04A
accent
#DC4C81
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51226C

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

Preview Lab → · Contrast checker → · Palette generator →

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