#51269A#51269A

#51269A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.175 H 293.8°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#51269A
RGBrgb(81, 38, 154)
HSLhsl(262, 60%, 38%)
HSVhsv(262, 75%, 60%)
CMYKcmyk(47.4%, 75.3%, 0%, 39.6%)
CIE-LABlab(28.03, 45.61, -55.80)
CIE-LCHlch(28.03, 72.07, 309.26°)
OKLaboklab(40% 0.0707 -0.16)
OKLCHoklch(40% 0.175 293.8)
XYZxyz(9.9176, 5.4684, 31.0985)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51269A #6F9A26
analogous
#26359A #51269A #8B269A
triadic
#51269A #9A5126 #269A51
tetradic
#51269A #9A2635 #6F9A26 #269A8B
square
#51269A #9A2635 #6F9A26 #269A8B
split-complementary
#51269A #9A8B26 #359A26
monochromatic
#1D0E38 #371A69 #51269A #6B32CB #8E62D8

Accessibility & contrast

On white

10.03
#51269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#51269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51269A
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51269A#FFFFFF#000000##FFFFFF
##51269A1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#3B455E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51269a;
/* rgb */ color: rgb(81, 38, 154);
/* oklch */ color: oklch(40.0% 0.175 293.8);
Tailwind
colors: {
  custom: {
    50: '#8965b9',
    500: '#51269a',
    950: '#000000',
  },
}
SCSS
$custom: #51269a;
$custom-light: #8965b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51269a",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 262.241,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.1749,
    "h": 293.8
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51269A

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

Preview Lab → · Contrast checker → · Palette generator →

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