#5125BC#5125BC

#5125BC is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.214 H 286.7°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5125BC
RGBrgb(81, 37, 188)
HSLhsl(257, 67%, 44%)
HSVhsv(257, 80%, 74%)
CMYKcmyk(56.9%, 80.3%, 0%, 26.3%)
CIE-LABlab(31.12, 55.36, -71.15)
CIE-LCHlch(31.12, 90.15, 307.89°)
OKLaboklab(43.14% 0.0615 -0.2049)
OKLCHoklch(43.14% 0.214 286.7)
XYZxyz(13.1293, 6.7026, 48.1691)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5125BC #90BC25
analogous
#2545BC #5125BC #9D25BC
triadic
#5125BC #BC5125 #25BC51
tetradic
#5125BC #BC2545 #90BC25 #25BC9D
square
#5125BC #BC2545 #90BC25 #25BC9D
split-complementary
#5125BC #BC9D25 #45BC25
monochromatic
#251156 #3B1B89 #5125BC #7044DA #9777E4

Accessibility & contrast

On white

8.97
#5125BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5125BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5125BC
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5125BC#FFFFFF#000000##FFFFFF
##5125BC1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#1D5271
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5125bc;
/* rgb */ color: rgb(81, 37, 188);
/* oklch */ color: oklch(43.1% 0.214 286.7);
Tailwind
colors: {
  custom: {
    50: '#8e66d1',
    500: '#5125bc',
    950: '#000000',
  },
}
SCSS
$custom: #5125bc;
$custom-light: #8e66d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5125bc",
  "rgb": {
    "r": 81,
    "g": 37,
    "b": 188
  },
  "hsl": {
    "h": 257.483,
    "s": 67.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43142,
    "c": 0.21392,
    "h": 286.7
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#5125BC
secondary
#B1CC71
accent
#EA3EB8
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5125BC

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

Preview Lab → · Contrast checker → · Palette generator →

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