#5138AE#5138AE

#5138AE is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.178 H 286.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5138AE
RGBrgb(81, 56, 174)
HSLhsl(253, 51%, 45%)
HSVhsv(253, 68%, 68%)
CMYKcmyk(53.4%, 67.8%, 0%, 31.8%)
CIE-LABlab(33.21, 41.80, -59.41)
CIE-LCHlch(33.21, 72.64, 305.13°)
OKLaboklab(44.22% 0.0501 -0.1706)
OKLCHoklch(44.22% 0.178 286.4)
XYZxyz(12.4452, 7.6330, 40.8537)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138AE #95AE38
analogous
#385AAE #5138AE #8C38AE
triadic
#5138AE #AE5138 #38AE51
tetradic
#5138AE #AE385A #95AE38 #38AE8C
square
#5138AE #AE385A #95AE38 #38AE8C
split-complementary
#5138AE #AE8C38 #5AAE38
monochromatic
#261A51 #3B2980 #5138AE #7159CA #9988D9

Accessibility & contrast

On white

8.31
#5138AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5138AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138AE
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138AE#FFFFFF#000000##FFFFFF
##5138AE1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#2B566E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5138ae;
/* rgb */ color: rgb(81, 56, 174);
/* oklch */ color: oklch(44.2% 0.178 286.4);
Tailwind
colors: {
  custom: {
    50: '#8b70c7',
    500: '#5138ae',
    950: '#000000',
  },
}
SCSS
$custom: #5138ae;
$custom-light: #8b70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5138ae",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 252.712,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44222,
    "c": 0.17786,
    "h": 286.4
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#5138AE
secondary
#B4C37F
accent
#DB4DBD
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5138AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5138AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva