#5025B2#5025B2

#5025B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.1% C 0.203 H 288.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5025B2
RGBrgb(80, 37, 178)
HSLhsl(258, 66%, 42%)
HSVhsv(258, 79%, 70%)
CMYKcmyk(55.1%, 79.2%, 0%, 30.2%)
CIE-LABlab(30.02, 52.51, -67.04)
CIE-LCHlch(30.02, 85.16, 308.07°)
OKLaboklab(42.05% 0.0631 -0.1929)
OKLCHoklch(42.05% 0.203 288.1)
XYZxyz(12.0033, 6.2423, 42.6833)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5025B2 #87B225
analogous
#2541B2 #5025B2 #9725B2
triadic
#5025B2 #B25025 #25B250
tetradic
#5025B2 #B22541 #87B225 #25B297
square
#5025B2 #B22541 #87B225 #25B297
split-complementary
#5025B2 #B29725 #41B225
monochromatic
#22104D #391A7F #5025B2 #6C3DD7 #9370E1

Accessibility & contrast

On white

9.34
#5025B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5025B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5025B2
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5025B2#FFFFFF#000000##FFFFFF
##5025B21.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#264E6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5025b2;
/* rgb */ color: rgb(80, 37, 178);
/* oklch */ color: oklch(42.1% 0.203 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c66ca',
    500: '#5025b2',
    950: '#000000',
  },
}
SCSS
$custom: #5025b2;
$custom-light: #8c66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5025b2",
  "rgb": {
    "r": 80,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 258.298,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42052,
    "c": 0.20296,
    "h": 288.1
  },
  "luminance": 0.06243
}

Semantic roles & 50–950 ramp

primary
#5025B2
secondary
#ACC86B
accent
#E93FB5
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5025B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5025B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva