#51269E#51269E

#51269E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.179 H 292.8°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#51269E
RGBrgb(81, 38, 158)
HSLhsl(262, 61%, 38%)
HSVhsv(262, 76%, 62%)
CMYKcmyk(48.7%, 75.9%, 0%, 38%)
CIE-LABlab(28.39, 46.71, -57.65)
CIE-LCHlch(28.39, 74.19, 309.01°)
OKLaboklab(40.37% 0.0697 -0.1654)
OKLCHoklch(40.37% 0.179 292.8)
XYZxyz(10.2563, 5.6038, 32.8824)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51269E #739E26
analogous
#26379E #51269E #8D269E
triadic
#51269E #9E5126 #269E51
tetradic
#51269E #9E2637 #739E26 #269E8D
square
#51269E #9E2637 #739E26 #269E8D
split-complementary
#51269E #9E8D26 #379E26
monochromatic
#1E0E3B #381A6D #51269E #6B33CE #8F65DA

Accessibility & contrast

On white

9.90
#51269E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#51269E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51269E
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51269E#FFFFFF#000000##FFFFFF
##51269E1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#394660
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51269e;
/* rgb */ color: rgb(81, 38, 158);
/* oklch */ color: oklch(40.4% 0.179 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a65bc',
    500: '#51269e',
    950: '#000000',
  },
}
SCSS
$custom: #51269e;
$custom-light: #8a65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51269e",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 261.5,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40366,
    "c": 0.17947,
    "h": 292.8
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#51269E
secondary
#9DC060
accent
#E443AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51269E

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

Preview Lab → · Contrast checker → · Palette generator →

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