#51269B#51269B

#51269B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.176 H 293.6°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#51269B
RGBrgb(81, 38, 155)
HSLhsl(262, 61%, 38%)
HSVhsv(262, 75%, 61%)
CMYKcmyk(47.7%, 75.5%, 0%, 39.2%)
CIE-LABlab(28.12, 45.88, -56.26)
CIE-LCHlch(28.12, 72.60, 309.20°)
OKLaboklab(40.09% 0.0705 -0.1613)
OKLCHoklch(40.09% 0.176 293.6)
XYZxyz(10.0012, 5.5018, 31.5390)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51269B #709B26
analogous
#26369B #51269B #8B269B
triadic
#51269B #9B5126 #269B51
tetradic
#51269B #9B2636 #709B26 #269B8B
square
#51269B #9B2636 #709B26 #269B8B
split-complementary
#51269B #9B8B26 #369B26
monochromatic
#1E0E39 #371A6A #51269B #6B32CC #8E63D9

Accessibility & contrast

On white

10.00
#51269B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#51269B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51269B
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51269B#FFFFFF#000000##FFFFFF
##51269B1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#3B455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51269b;
/* rgb */ color: rgb(81, 38, 155);
/* oklch */ color: oklch(40.1% 0.176 293.6);
Tailwind
colors: {
  custom: {
    50: '#8965b9',
    500: '#51269b',
    950: '#000000',
  },
}
SCSS
$custom: #51269b;
$custom-light: #8965b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51269b",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 155
  },
  "hsl": {
    "h": 262.051,
    "s": 60.622,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40092,
    "c": 0.17605,
    "h": 293.6
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#51269B
secondary
#9BBE5F
accent
#E444A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51269B

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

Preview Lab → · Contrast checker → · Palette generator →

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