#5031C8#5031C8

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

Color values

HEX#5031C8
RGBrgb(80, 49, 200)
HSLhsl(252, 61%, 49%)
HSVhsv(252, 76%, 78%)
CMYKcmyk(60%, 75.5%, 0%, 21.6%)
CIE-LABlab(34.13, 53.09, -73.24)
CIE-LCHlch(34.13, 90.46, 305.94°)
OKLaboklab(45.57% 0.0489 -0.2111)
OKLCHoklch(45.57% 0.217 283)
XYZxyz(14.8287, 8.0712, 55.4089)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5031C8 #A9C831
analogous
#315EC8 #5031C8 #9C31C8
triadic
#5031C8 #C85031 #31C850
tetradic
#5031C8 #C8315E #A9C831 #31C89C
square
#5031C8 #C8315E #A9C831 #31C89C
split-complementary
#5031C8 #C89C31 #5EC831
monochromatic
#291966 #3C2597 #5031C8 #775FD8 #A190E4

Accessibility & contrast

On white

8.03
#5031C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5031C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5031C8
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5031C8#FFFFFF#000000##FFFFFF
##5031C81.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.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: #5031c8;
/* rgb */ color: rgb(80, 49, 200);
/* oklch */ color: oklch(45.6% 0.217 283.0);
Tailwind
colors: {
  custom: {
    50: '#8f6dda',
    500: '#5031c8',
    950: '#000000',
  },
}
SCSS
$custom: #5031c8;
$custom-light: #8f6dda;
$custom-dark: #000000;
JSON
{
  "hex": "#5031c8",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 252.318,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45574,
    "c": 0.21674,
    "h": 283
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#5031C8
secondary
#C0CE86
accent
#E444C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5031C8

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

Preview Lab → · Contrast checker → · Palette generator →

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