#51307C#51307C

#51307C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.125 H 300.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#51307C
RGBrgb(81, 48, 124)
HSLhsl(266, 44%, 34%)
HSVhsv(266, 61%, 49%)
CMYKcmyk(34.7%, 61.3%, 0%, 51.4%)
CIE-LABlab(27.62, 31.89, -37.84)
CIE-LCHlch(27.62, 49.48, 310.12°)
OKLaboklab(38.96% 0.0638 -0.1072)
OKLCHoklch(38.96% 0.125 300.8)
XYZxyz(8.0875, 5.3184, 19.6654)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51307C #5B7C30
analogous
#30357C #51307C #77307C
triadic
#51307C #7C5130 #307C51
tetradic
#51307C #7C3035 #5B7C30 #307C77
square
#51307C #7C3035 #5B7C30 #307C77
split-complementary
#51307C #7C7730 #357C30
monochromatic
#170E24 #341F50 #51307C #6E41A8 #8D64C3

Accessibility & contrast

On white

10.18
#51307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#51307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51307C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51307C#FFFFFF#000000##FFFFFF
##51307C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08417E
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#484051
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51307c;
/* rgb */ color: rgb(81, 48, 124);
/* oklch */ color: oklch(39.0% 0.125 300.8);
Tailwind
colors: {
  custom: {
    50: '#856aa2',
    500: '#51307c',
    950: '#000000',
  },
}
SCSS
$custom: #51307c;
$custom-light: #856aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#51307c",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 266.053,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38963,
    "c": 0.12479,
    "h": 300.8
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#51307C
secondary
#89AA5E
accent
#D4549C
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51307C

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

Preview Lab → · Contrast checker → · Palette generator →

#51307C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva