#5138AC#5138AC

#5138AC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.0% C 0.175 H 286.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5138AC
RGBrgb(81, 56, 172)
HSLhsl(253, 51%, 45%)
HSVhsv(253, 67%, 67%)
CMYKcmyk(52.9%, 67.4%, 0%, 32.5%)
CIE-LABlab(33.04, 41.20, -58.49)
CIE-LCHlch(33.04, 71.54, 305.16°)
OKLaboklab(44.05% 0.0504 -0.1679)
OKLCHoklch(44.05% 0.175 286.7)
XYZxyz(12.2517, 7.5556, 39.8345)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138AC #93AC38
analogous
#3859AC #5138AC #8B38AC
triadic
#5138AC #AC5138 #38AC51
tetradic
#5138AC #AC3859 #93AC38 #38AC8B
square
#5138AC #AC3859 #93AC38 #38AC8B
split-complementary
#5138AC #AC8B38 #59AC38
monochromatic
#261A50 #3B297E #5138AC #7158C9 #9887D8

Accessibility & contrast

On white

8.36
#5138AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5138AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138AC
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138AC#FFFFFF#000000##FFFFFF
##5138AC1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#2D556D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5138ac;
/* rgb */ color: rgb(81, 56, 172);
/* oklch */ color: oklch(44.0% 0.175 286.7);
Tailwind
colors: {
  custom: {
    50: '#8a70c6',
    500: '#5138ac',
    950: '#000000',
  },
}
SCSS
$custom: #5138ac;
$custom-light: #8a70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5138ac",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 252.931,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4405,
    "c": 0.17534,
    "h": 286.7
  },
  "luminance": 0.07556
}

Semantic roles & 50–950 ramp

primary
#5138AC
secondary
#B3C27E
accent
#DA4DBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5138AC

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

Preview Lab → · Contrast checker → · Palette generator →

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