#514282#514282

#514282 is a dark, moderate violet. Relative luminance 0.073; OKLCH L 42.6% C 0.104 H 292.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#514282
RGBrgb(81, 66, 130)
HSLhsl(254, 33%, 38%)
HSVhsv(254, 49%, 51%)
CMYKcmyk(37.7%, 49.2%, 0%, 49%)
CIE-LABlab(32.39, 22.42, -33.98)
CIE-LCHlch(32.39, 40.70, 303.42°)
OKLaboklab(42.62% 0.0392 -0.0959)
OKLCHoklch(42.62% 0.104 292.2)
XYZxyz(9.3698, 7.2572, 22.0219)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#514282 #738242
analogous
#425382 #514282 #714282
triadic
#514282 #825142 #428251
tetradic
#514282 #824253 #738242 #428271
square
#514282 #824253 #738242 #428271
split-complementary
#514282 #827142 #538242
monochromatic
#1E1931 #382D59 #514282 #6B57AA #8F80BE

Accessibility & contrast

On white

8.57
#514282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#514282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #514282
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##514282#FFFFFF#000000##FFFFFF
##5142821.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4D84
Deuteranopia (green-blind)
#2D4B80
Tritanopia (blue-blind)
#454F5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #514282;
/* rgb */ color: rgb(81, 66, 130);
/* oklch */ color: oklch(42.6% 0.104 292.2);
Tailwind
colors: {
  custom: {
    50: '#8476a7',
    500: '#514282',
    950: '#000000',
  },
}
SCSS
$custom: #514282;
$custom-light: #8476a7;
$custom-dark: #000000;
JSON
{
  "hex": "#514282",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 254.063,
    "s": 32.653,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.10359,
    "h": 292.2
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#514282
secondary
#9DA977
accent
#C95FB0
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #514282

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

Preview Lab → · Contrast checker → · Palette generator →

#514282 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva