#51308E#51308E

#51308E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.148 H 295.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#51308E
RGBrgb(81, 48, 142)
HSLhsl(261, 49%, 37%)
HSVhsv(261, 66%, 56%)
CMYKcmyk(43%, 66.2%, 0%, 44.3%)
CIE-LABlab(28.94, 36.94, -46.94)
CIE-LCHlch(28.94, 59.73, 308.20°)
OKLaboklab(40.34% 0.0627 -0.134)
OKLCHoklch(40.34% 0.148 295.1)
XYZxyz(9.3315, 5.8160, 26.2169)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51308E #6D8E30
analogous
#303E8E #51308E #80308E
triadic
#51308E #8E5130 #308E51
tetradic
#51308E #8E303E #6D8E30 #308E80
square
#51308E #8E303E #6D8E30 #308E80
split-complementary
#51308E #8E8030 #3E8E30
monochromatic
#1D1133 #372160 #51308E #6B3FBC #8E6BCD

Accessibility & contrast

On white

9.71
#51308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#51308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51308E
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51308E#FFFFFF#000000##FFFFFF
##51308E1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#41465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51308e;
/* rgb */ color: rgb(81, 48, 142);
/* oklch */ color: oklch(40.3% 0.148 295.1);
Tailwind
colors: {
  custom: {
    50: '#876ab0',
    500: '#51308e',
    950: '#000000',
  },
}
SCSS
$custom: #51308e;
$custom-light: #876ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#51308e",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 261.064,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40342,
    "c": 0.1479,
    "h": 295.1
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#51308E
secondary
#99B465
accent
#D94FA8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #51308E

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

Preview Lab → · Contrast checker → · Palette generator →

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