#5125BA#5125BA

#5125BA is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.212 H 287.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5125BA
RGBrgb(81, 37, 186)
HSLhsl(258, 67%, 44%)
HSVhsv(258, 80%, 73%)
CMYKcmyk(56.5%, 80.1%, 0%, 27.1%)
CIE-LABlab(30.92, 54.82, -70.30)
CIE-LCHlch(30.92, 89.15, 307.95°)
OKLaboklab(42.94% 0.0621 -0.2024)
OKLCHoklch(42.94% 0.212 287.1)
XYZxyz(12.9152, 6.6169, 47.0415)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125BA #8EBA25
analogous
#2543BA #5125BA #9B25BA
triadic
#5125BA #BA5125 #25BA51
tetradic
#5125BA #BA2543 #8EBA25 #25BA9B
square
#5125BA #BA2543 #8EBA25 #25BA9B
split-complementary
#5125BA #BA9B25 #43BA25
monochromatic
#251154 #3B1B87 #5125BA #6F43DA #9676E4

Accessibility & contrast

On white

9.04
#5125BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5125BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125BA
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125BA#FFFFFF#000000##FFFFFF
##5125BA1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#205170
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5125ba;
/* rgb */ color: rgb(81, 37, 186);
/* oklch */ color: oklch(42.9% 0.212 287.1);
Tailwind
colors: {
  custom: {
    50: '#8e66d0',
    500: '#5125ba',
    950: '#000000',
  },
}
SCSS
$custom: #5125ba;
$custom-light: #8e66d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5125ba",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 186
  },
  "hsl": {
    "h": 257.718,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.21172,
    "h": 287.1
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#5125BA
secondary
#B0CB70
accent
#EA3EB7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0614
muted
#7E7A82

Preview Lab

Preview with #5125BA

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

Preview Lab → · Contrast checker → · Palette generator →

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