#5131C8#5131C8

#5131C8 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.217 H 283.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5131C8
RGBrgb(81, 49, 200)
HSLhsl(253, 61%, 49%)
HSVhsv(253, 76%, 78%)
CMYKcmyk(59.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(34.22, 53.21, -73.09)
CIE-LCHlch(34.22, 90.41, 306.06°)
OKLaboklab(45.66% 0.0503 -0.2107)
OKLCHoklch(45.66% 0.217 283.4)
XYZxyz(14.9138, 8.1151, 55.4129)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131C8 #A8C831
analogous
#315DC8 #5131C8 #9D31C8
triadic
#5131C8 #C85131 #31C851
tetradic
#5131C8 #C8315D #A8C831 #31C89D
square
#5131C8 #C8315D #A8C831 #31C89D
split-complementary
#5131C8 #C89D31 #5DC831
monochromatic
#291966 #3D2597 #5131C8 #785FD8 #A190E4

Accessibility & contrast

On white

8.01
#5131C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5131C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131C8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131C8#FFFFFF#000000##FFFFFF
##5131C81.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CC
Deuteranopia (green-blind)
#004BC5
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5131c8;
/* rgb */ color: rgb(81, 49, 200);
/* oklch */ color: oklch(45.7% 0.217 283.4);
Tailwind
colors: {
  custom: {
    50: '#906dda',
    500: '#5131c8',
    950: '#000000',
  },
}
SCSS
$custom: #5131c8;
$custom-light: #906dda;
$custom-dark: #000000;
JSON
{
  "hex": "#5131c8",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 252.715,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4566,
    "c": 0.21661,
    "h": 283.4
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#5131C8
secondary
#BFCE86
accent
#E444C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5131C8

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

Preview Lab → · Contrast checker → · Palette generator →

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