#51268B#51268B

#51268B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.158 H 298.1°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#51268B
RGBrgb(81, 38, 139)
HSLhsl(266, 57%, 35%)
HSVhsv(266, 73%, 55%)
CMYKcmyk(41.7%, 72.7%, 0%, 45.5%)
CIE-LABlab(26.73, 41.53, -48.67)
CIE-LCHlch(26.73, 63.98, 310.48°)
OKLaboklab(38.68% 0.0741 -0.139)
OKLCHoklch(38.68% 0.158 298.1)
XYZxyz(8.7455, 4.9995, 24.9253)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51268B #608B26
analogous
#262D8B #51268B #84268B
triadic
#51268B #8B5126 #268B51
tetradic
#51268B #8B262D #608B26 #268B84
square
#51268B #8B262D #608B26 #268B84
split-complementary
#51268B #8B8426 #2D8B26
monochromatic
#190C2B #35195B #51268B #6D33BB #8D5AD2

Accessibility & contrast

On white

10.50
#51268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#51268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51268B
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51268B#FFFFFF#000000##FFFFFF
##51268B1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#433F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51268b;
/* rgb */ color: rgb(81, 38, 139);
/* oklch */ color: oklch(38.7% 0.158 298.1);
Tailwind
colors: {
  custom: {
    50: '#8764ae',
    500: '#51268b',
    950: '#000000',
  },
}
SCSS
$custom: #51268b;
$custom-light: #8764ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51268b",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 265.545,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38683,
    "c": 0.15754,
    "h": 298.1
  },
  "luminance": 0.05
}

Semantic roles & 50–950 ramp

primary
#51268B
secondary
#8EB756
accent
#E0479F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51268B

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

Preview Lab → · Contrast checker → · Palette generator →

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