#5125AF#5125AF

#5125AF is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.200 H 289.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5125AF
RGBrgb(81, 37, 175)
HSLhsl(259, 65%, 42%)
HSVhsv(259, 79%, 69%)
CMYKcmyk(53.7%, 78.9%, 0%, 31.4%)
CIE-LABlab(29.83, 51.82, -65.54)
CIE-LCHlch(29.83, 83.56, 308.33°)
OKLaboklab(41.86% 0.0656 -0.1885)
OKLCHoklch(41.86% 0.2 289.2)
XYZxyz(11.7905, 6.1671, 41.1182)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125AF #83AF25
analogous
#253EAF #5125AF #9625AF
triadic
#5125AF #AF5125 #25AF51
tetradic
#5125AF #AF253E #83AF25 #25AF96
square
#5125AF #AF253E #83AF25 #25AF96
split-complementary
#5125AF #AF9625 #3EAF25
monochromatic
#22104A #3A1A7C #5125AF #6D3CD6 #926EE0

Accessibility & contrast

On white

9.40
#5125AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5125AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125AF
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125AF#FFFFFF#000000##FFFFFF
##5125AF1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#2C4D6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5125af;
/* rgb */ color: rgb(81, 37, 175);
/* oklch */ color: oklch(41.9% 0.200 289.2);
Tailwind
colors: {
  custom: {
    50: '#8c65c8',
    500: '#5125af',
    950: '#000000',
  },
}
SCSS
$custom: #5125af;
$custom-light: #8c65c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5125af",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 175
  },
  "hsl": {
    "h": 259.13,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4186,
    "c": 0.19959,
    "h": 289.2
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#5125AF
secondary
#A9C769
accent
#E840B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5125AF

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

Preview Lab → · Contrast checker → · Palette generator →

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