#5032AF#5032AF

#5032AF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.186 H 286.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5032AF
RGBrgb(80, 50, 175)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 71%, 69%)
CMYKcmyk(54.3%, 71.4%, 0%, 31.4%)
CIE-LABlab(31.99, 45.25, -62.00)
CIE-LCHlch(31.99, 76.76, 306.12°)
OKLaboklab(43.36% 0.0539 -0.1783)
OKLCHoklch(43.36% 0.186 286.8)
XYZxyz(12.1844, 7.0812, 41.2739)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5032AF #91AF32
analogous
#3253AF #5032AF #8F32AF
triadic
#5032AF #AF5032 #32AF50
tetradic
#5032AF #AF3253 #91AF32 #32AF8F
square
#5032AF #AF3253 #91AF32 #32AF8F
split-complementary
#5032AF #AF8F32 #53AF32
monochromatic
#241750 #3A247F #5032AF #6F51CD #9681DB

Accessibility & contrast

On white

8.69
#5032AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5032AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5032AF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5032AF#FFFFFF#000000##FFFFFF
##5032AF1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#28536D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5032af;
/* rgb */ color: rgb(80, 50, 175);
/* oklch */ color: oklch(43.4% 0.186 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b6dc8',
    500: '#5032af',
    950: '#000000',
  },
}
SCSS
$custom: #5032af;
$custom-light: #8b6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5032af",
  "rgb": {
    "r": 80,
    "g": 50,
    "b": 175
  },
  "hsl": {
    "h": 254.4,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43356,
    "c": 0.18623,
    "h": 286.8
  },
  "luminance": 0.07082
}

Semantic roles & 50–950 ramp

primary
#5032AF
secondary
#B2C479
accent
#DF49BB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5032AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5032AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva