#51267D#51267D

#51267D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.141 H 302.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#51267D
RGBrgb(81, 38, 125)
HSLhsl(270, 53%, 32%)
HSVhsv(270, 70%, 49%)
CMYKcmyk(35.2%, 69.6%, 0%, 51%)
CIE-LABlab(25.61, 37.80, -41.71)
CIE-LCHlch(25.61, 56.29, 312.18°)
OKLaboklab(37.53% 0.0764 -0.1186)
OKLCHoklch(37.53% 0.141 302.8)
XYZxyz(7.7873, 4.6162, 19.8788)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51267D #527D26
analogous
#26277D #51267D #7D267D
triadic
#51267D #7D5126 #267D51
tetradic
#51267D #7D2627 #527D26 #267D7D
square
#51267D #7D2627 #527D26 #267D7D
split-complementary
#51267D #7D7D26 #277D26
monochromatic
#14091F #33184E #51267D #6F34AC #8E53CB

Accessibility & contrast

On white

10.92
#51267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#51267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51267D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51267D#FFFFFF#000000##FFFFFF
##51267D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#483A4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51267d;
/* rgb */ color: rgb(81, 38, 125);
/* oklch */ color: oklch(37.5% 0.141 302.8);
Tailwind
colors: {
  custom: {
    50: '#8664a3',
    500: '#51267d',
    950: '#000000',
  },
}
SCSS
$custom: #51267d;
$custom-light: #8664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51267d",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 269.655,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3753,
    "c": 0.14105,
    "h": 302.8
  },
  "luminance": 0.04616
}

Semantic roles & 50–950 ramp

primary
#51267D
secondary
#80AF50
accent
#DD4B95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51267D

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

Preview Lab → · Contrast checker → · Palette generator →

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