#51269F#51269F

#51269F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.181 H 292.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#51269F
RGBrgb(81, 38, 159)
HSLhsl(261, 61%, 39%)
HSVhsv(261, 76%, 62%)
CMYKcmyk(49.1%, 76.1%, 0%, 37.6%)
CIE-LABlab(28.48, 46.98, -58.11)
CIE-LCHlch(28.48, 74.72, 308.96°)
OKLaboklab(40.46% 0.0694 -0.1667)
OKLCHoklch(40.46% 0.181 292.6)
XYZxyz(10.3427, 5.6384, 33.3375)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51269F #749F26
analogous
#26389F #51269F #8D269F
triadic
#51269F #9F5126 #269F51
tetradic
#51269F #9F2638 #749F26 #269F8D
square
#51269F #9F2638 #749F26 #269F8D
split-complementary
#51269F #9F8D26 #389F26
monochromatic
#1F0E3C #381A6E #51269F #6B34CE #8F65DA

Accessibility & contrast

On white

9.87
#51269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#51269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51269F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51269F#FFFFFF#000000##FFFFFF
##51269F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#384761
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51269f;
/* rgb */ color: rgb(81, 38, 159);
/* oklch */ color: oklch(40.5% 0.181 292.6);
Tailwind
colors: {
  custom: {
    50: '#8a65bc',
    500: '#51269f',
    950: '#000000',
  },
}
SCSS
$custom: #51269f;
$custom-light: #8a65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51269f",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 261.322,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40458,
    "c": 0.18062,
    "h": 292.6
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#51269F
secondary
#9EC061
accent
#E543AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51269F

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

Preview Lab → · Contrast checker → · Palette generator →

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