#51268F#51268F

#51268F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.162 H 296.9°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#51268F
RGBrgb(81, 38, 143)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 73%, 56%)
CMYKcmyk(43.4%, 73.4%, 0%, 43.9%)
CIE-LABlab(27.07, 42.61, -50.60)
CIE-LCHlch(27.07, 66.15, 310.10°)
OKLaboklab(39.03% 0.0733 -0.1447)
OKLCHoklch(39.03% 0.162 296.9)
XYZxyz(9.0431, 5.1185, 26.4928)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51268F #648F26
analogous
#26308F #51268F #85268F
triadic
#51268F #8F5126 #268F51
tetradic
#51268F #8F2630 #648F26 #268F85
square
#51268F #8F2630 #648F26 #268F85
split-complementary
#51268F #8F8526 #308F26
monochromatic
#1A0C2E #36195F #51268F #6C33BF #8D5CD4

Accessibility & contrast

On white

10.38
#51268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#51268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51268F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51268F#FFFFFF#000000##FFFFFF
##51268F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#414158
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51268f;
/* rgb */ color: rgb(81, 38, 143);
/* oklch */ color: oklch(39.0% 0.162 296.9);
Tailwind
colors: {
  custom: {
    50: '#8864b1',
    500: '#51268f',
    950: '#000000',
  },
}
SCSS
$custom: #51268f;
$custom-light: #8864b1;
$custom-dark: #000000;
JSON
{
  "hex": "#51268f",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 264.571,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.16219,
    "h": 296.9
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#51268F
secondary
#91B958
accent
#E147A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51268F

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

Preview Lab → · Contrast checker → · Palette generator →

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