#5131BC#5131BC

#5131BC is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.5% C 0.203 H 285.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5131BC
RGBrgb(81, 49, 188)
HSLhsl(254, 59%, 46%)
HSVhsv(254, 74%, 74%)
CMYKcmyk(56.9%, 73.9%, 0%, 26.3%)
CIE-LABlab(33.08, 49.73, -67.92)
CIE-LCHlch(33.08, 84.18, 306.21°)
OKLaboklab(44.52% 0.0533 -0.1956)
OKLCHoklch(44.52% 0.203 285.2)
XYZxyz(13.5660, 7.5760, 48.3147)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131BC #9CBC31
analogous
#3157BC #5131BC #9731BC
triadic
#5131BC #BC5131 #31BC51
tetradic
#5131BC #BC3157 #9CBC31 #31BC97
square
#5131BC #BC3157 #9CBC31 #31BC97
split-complementary
#5131BC #BC9731 #57BC31
monochromatic
#27185B #3C248B #5131BC #7457D3 #9C88E0

Accessibility & contrast

On white

8.35
#5131BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5131BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131BC
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131BC#FFFFFF#000000##FFFFFF
##5131BC1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#1B5774
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5131bc;
/* rgb */ color: rgb(81, 49, 188);
/* oklch */ color: oklch(44.5% 0.203 285.2);
Tailwind
colors: {
  custom: {
    50: '#8e6dd1',
    500: '#5131bc',
    950: '#000000',
  },
}
SCSS
$custom: #5131bc;
$custom-light: #8e6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5131bc",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 253.813,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44515,
    "c": 0.20269,
    "h": 285.2
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#5131BC
secondary
#B8CA7F
accent
#E246BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5131BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5131BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva