#51267B#51267B

#51267B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.139 H 303.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#51267B
RGBrgb(81, 38, 123)
HSLhsl(270, 53%, 32%)
HSVhsv(270, 69%, 48%)
CMYKcmyk(34.1%, 69.1%, 0%, 51.8%)
CIE-LABlab(25.46, 37.28, -40.70)
CIE-LCHlch(25.46, 55.19, 312.49°)
OKLaboklab(37.37% 0.0766 -0.1156)
OKLCHoklch(37.37% 0.139 303.5)
XYZxyz(7.6608, 4.5656, 19.2127)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51267B #507B26
analogous
#27267B #51267B #7B267B
triadic
#51267B #7B5126 #267B51
tetradic
#51267B #7B2726 #507B26 #267B7B
square
#51267B #7B2726 #507B26 #267B7B
split-complementary
#51267B #7B7B26 #267B27
monochromatic
#13091D #32184C #51267B #7034AA #8E52CA

Accessibility & contrast

On white

10.98
#51267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#51267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51267B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51267B#FFFFFF#000000##FFFFFF
##51267B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#063C79
Tritanopia (blue-blind)
#49394D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #51267b;
/* rgb */ color: rgb(81, 38, 123);
/* oklch */ color: oklch(37.4% 0.139 303.5);
Tailwind
colors: {
  custom: {
    50: '#8664a2',
    500: '#51267b',
    950: '#000000',
  },
}
SCSS
$custom: #51267b;
$custom-light: #8664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51267b",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 270.353,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37372,
    "c": 0.13868,
    "h": 303.5
  },
  "luminance": 0.04566
}

Semantic roles & 50–950 ramp

primary
#51267B
secondary
#7EAD50
accent
#DC4C93
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51267B

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

Preview Lab → · Contrast checker → · Palette generator →

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