#51269C#51269C

#51269C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.177 H 293.3°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#51269C
RGBrgb(81, 38, 156)
HSLhsl(262, 61%, 38%)
HSVhsv(262, 76%, 61%)
CMYKcmyk(48.1%, 75.6%, 0%, 38.8%)
CIE-LABlab(28.21, 46.16, -56.73)
CIE-LCHlch(28.21, 73.13, 309.13°)
OKLaboklab(40.18% 0.0702 -0.1627)
OKLCHoklch(40.18% 0.177 293.3)
XYZxyz(10.0855, 5.5355, 31.9831)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51269C #719C26
analogous
#26369C #51269C #8C269C
triadic
#51269C #9C5126 #269C51
tetradic
#51269C #9C2636 #719C26 #269C8C
square
#51269C #9C2636 #719C26 #269C8C
split-complementary
#51269C #9C8C26 #369C26
monochromatic
#1E0E3A #371A6B #51269C #6B32CD #8E63D9

Accessibility & contrast

On white

9.97
#51269C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#51269C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51269C
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51269C#FFFFFF#000000##FFFFFF
##51269C1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#3A465F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51269c;
/* rgb */ color: rgb(81, 38, 156);
/* oklch */ color: oklch(40.2% 0.177 293.3);
Tailwind
colors: {
  custom: {
    50: '#8965ba',
    500: '#51269c',
    950: '#000000',
  },
}
SCSS
$custom: #51269c;
$custom-light: #8965ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51269c",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 156
  },
  "hsl": {
    "h": 261.864,
    "s": 60.825,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40183,
    "c": 0.17719,
    "h": 293.3
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

primary
#51269C
secondary
#9CBF5F
accent
#E444AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51269C

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

Preview Lab → · Contrast checker → · Palette generator →

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