#51267C#51267C

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

Color values

HEX#51267C
RGBrgb(81, 38, 124)
HSLhsl(270, 53%, 32%)
HSVhsv(270, 69%, 49%)
CMYKcmyk(34.7%, 69.4%, 0%, 51.4%)
CIE-LABlab(25.54, 37.54, -41.21)
CIE-LCHlch(25.54, 55.74, 312.33°)
OKLaboklab(37.45% 0.0765 -0.1171)
OKLCHoklch(37.45% 0.14 303.2)
XYZxyz(7.7237, 4.5908, 19.5441)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51267C #517C26
analogous
#26267C #51267C #7C267C
triadic
#51267C #7C5126 #267C51
tetradic
#51267C #7C2626 #517C26 #267C7C
square
#51267C #7C2626 #517C26 #267C7C
split-complementary
#51267C #7C7C26 #267C26
monochromatic
#14091E #32184D #51267C #7034AB #8E52CA

Accessibility & contrast

On white

10.95
#51267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51267C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51267C#FFFFFF#000000##FFFFFF
##51267C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#033C7A
Tritanopia (blue-blind)
#49394D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #51267c;
/* rgb */ color: rgb(81, 38, 124);
/* oklch */ color: oklch(37.5% 0.140 303.2);
Tailwind
colors: {
  custom: {
    50: '#8664a2',
    500: '#51267c',
    950: '#000000',
  },
}
SCSS
$custom: #51267c;
$custom-light: #8664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51267c",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 270,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37451,
    "c": 0.13987,
    "h": 303.2
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#51267C
secondary
#7FAE50
accent
#DC4B94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51267C

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

Preview Lab → · Contrast checker → · Palette generator →

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