#5129AF#5129AF

#5129AF is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.196 H 288.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#5129AF
RGBrgb(81, 41, 175)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 77%, 69%)
CMYKcmyk(53.7%, 76.6%, 0%, 31.4%)
CIE-LABlab(30.47, 49.98, -64.49)
CIE-LCHlch(30.47, 81.59, 307.77°)
OKLaboklab(42.31% 0.0627 -0.1855)
OKLCHoklch(42.31% 0.196 288.7)
XYZxyz(11.9219, 6.4298, 41.1620)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5129AF #87AF29
analogous
#2944AF #5129AF #9429AF
triadic
#5129AF #AF5129 #29AF51
tetradic
#5129AF #AF2944 #87AF29 #29AF94
square
#5129AF #AF2944 #87AF29 #29AF94
split-complementary
#5129AF #AF9429 #44AF29
monochromatic
#23124C #3A1D7D #5129AF #6D42D3 #9474DE

Accessibility & contrast

On white

9.19
#5129AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5129AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5129AF
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5129AF#FFFFFF#000000##FFFFFF
##5129AF1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#2C4F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5129af;
/* rgb */ color: rgb(81, 41, 175);
/* oklch */ color: oklch(42.3% 0.196 288.7);
Tailwind
colors: {
  custom: {
    50: '#8c68c8',
    500: '#5129af',
    950: '#000000',
  },
}
SCSS
$custom: #5129af;
$custom-light: #8c68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5129af",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 175
  },
  "hsl": {
    "h": 257.91,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.19577,
    "h": 288.7
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#5129AF
secondary
#ACC66E
accent
#E543B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5129AF

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

Preview Lab → · Contrast checker → · Palette generator →

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