#51267F#51267F

#51267F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.143 H 302.1°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#51267F
RGBrgb(81, 38, 127)
HSLhsl(269, 54%, 32%)
HSVhsv(269, 70%, 50%)
CMYKcmyk(36.2%, 70.1%, 0%, 50.2%)
CIE-LABlab(25.77, 38.33, -42.73)
CIE-LCHlch(25.77, 57.40, 311.89°)
OKLaboklab(37.69% 0.0761 -0.1216)
OKLCHoklch(37.69% 0.143 302.1)
XYZxyz(7.9163, 4.6678, 20.5585)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51267F #547F26
analogous
#26287F #51267F #7E267F
triadic
#51267F #7F5126 #267F51
tetradic
#51267F #7F2628 #547F26 #267F7E
square
#51267F #7F2628 #547F26 #267F7E
split-complementary
#51267F #7F7E26 #287F26
monochromatic
#150A21 #331850 #51267F #6F34AE #8E54CC

Accessibility & contrast

On white

10.86
#51267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#51267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51267F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51267F#FFFFFF#000000##FFFFFF
##51267F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#473A4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51267f;
/* rgb */ color: rgb(81, 38, 127);
/* oklch */ color: oklch(37.7% 0.143 302.1);
Tailwind
colors: {
  custom: {
    50: '#8664a5',
    500: '#51267f',
    950: '#000000',
  },
}
SCSS
$custom: #51267f;
$custom-light: #8664a5;
$custom-dark: #000000;
JSON
{
  "hex": "#51267f",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 268.989,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3769,
    "c": 0.14342,
    "h": 302.1
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#51267F
secondary
#82B051
accent
#DD4A96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #51267F

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

Preview Lab → · Contrast checker → · Palette generator →

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