#51268D#51268D

#51268D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.160 H 297.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#51268D
RGBrgb(81, 38, 141)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 73%, 55%)
CMYKcmyk(42.6%, 73%, 0%, 44.7%)
CIE-LABlab(26.90, 42.07, -49.64)
CIE-LCHlch(26.90, 65.07, 310.28°)
OKLaboklab(38.85% 0.0737 -0.1419)
OKLCHoklch(38.85% 0.16 297.4)
XYZxyz(8.8929, 5.0585, 25.7020)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51268D #628D26
analogous
#262E8D #51268D #85268D
triadic
#51268D #8D5126 #268D51
tetradic
#51268D #8D262E #628D26 #268D85
square
#51268D #8D262E #628D26 #268D85
split-complementary
#51268D #8D8526 #2E8D26
monochromatic
#1A0C2D #35195D #51268D #6D33BD #8D5BD3

Accessibility & contrast

On white

10.44
#51268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#51268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51268D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51268D#FFFFFF#000000##FFFFFF
##51268D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#424057
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51268d;
/* rgb */ color: rgb(81, 38, 141);
/* oklch */ color: oklch(38.9% 0.160 297.4);
Tailwind
colors: {
  custom: {
    50: '#8864af',
    500: '#51268d',
    950: '#000000',
  },
}
SCSS
$custom: #51268d;
$custom-light: #8864af;
$custom-dark: #000000;
JSON
{
  "hex": "#51268d",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 265.049,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.15987,
    "h": 297.4
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

primary
#51268D
secondary
#8FB857
accent
#E147A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51268D

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

Preview Lab → · Contrast checker → · Palette generator →

#51268D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva