#51268E#51268E

#51268E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.161 H 297.1°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#51268E
RGBrgb(81, 38, 142)
HSLhsl(265, 58%, 35%)
HSVhsv(265, 73%, 56%)
CMYKcmyk(43%, 73.2%, 0%, 44.3%)
CIE-LABlab(26.99, 42.34, -50.12)
CIE-LCHlch(26.99, 65.61, 310.19°)
OKLaboklab(38.94% 0.0735 -0.1433)
OKLCHoklch(38.94% 0.161 297.1)
XYZxyz(8.9677, 5.0884, 26.0956)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51268E #638E26
analogous
#262F8E #51268E #85268E
triadic
#51268E #8E5126 #268E51
tetradic
#51268E #8E262F #638E26 #268E85
square
#51268E #8E262F #638E26 #268E85
split-complementary
#51268E #8E8526 #2F8E26
monochromatic
#1A0C2D #35195E #51268E #6D33BE #8D5BD3

Accessibility & contrast

On white

10.41
#51268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51268E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51268E#FFFFFF#000000##FFFFFF
##51268E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#414057
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51268e;
/* rgb */ color: rgb(81, 38, 142);
/* oklch */ color: oklch(38.9% 0.161 297.1);
Tailwind
colors: {
  custom: {
    50: '#8864b0',
    500: '#51268e',
    950: '#000000',
  },
}
SCSS
$custom: #51268e;
$custom-light: #8864b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51268e",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 264.808,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3894,
    "c": 0.16103,
    "h": 297.1
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#51268E
secondary
#90B858
accent
#E147A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51268E

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

Preview Lab → · Contrast checker → · Palette generator →

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