#7B25A6#7B25A6

#7B25A6 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.197 H 311.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7B25A6
RGBrgb(123, 37, 166)
HSLhsl(280, 64%, 40%)
HSVhsv(280, 78%, 65%)
CMYKcmyk(25.9%, 77.7%, 0%, 34.9%)
CIE-LABlab(34.58, 56.41, -52.17)
CIE-LCHlch(34.58, 76.84, 317.24°)
OKLaboklab(46.14% 0.1297 -0.1478)
OKLCHoklch(46.14% 0.197 311.3)
XYZxyz(15.7116, 8.2877, 36.8410)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B25A6 #50A625
analogous
#3A25A6 #7B25A6 #A62591
triadic
#7B25A6 #A67B25 #25A67B
tetradic
#7B25A6 #A63A25 #50A625 #2591A6
square
#7B25A6 #A63A25 #50A625 #2591A6
split-complementary
#7B25A6 #91A625 #25A63A
monochromatic
#310F42 #561A74 #7B25A6 #9E36D2 #B668DD

Accessibility & contrast

On white

7.90
#7B25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B25A6
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B25A6#FFFFFF#000000##FFFFFF
##7B25A61.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0653A3
Tritanopia (blue-blind)
#754465
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b25a6;
/* rgb */ color: rgb(123, 37, 166);
/* oklch */ color: oklch(46.1% 0.197 311.3);
Tailwind
colors: {
  custom: {
    50: '#a66ac1',
    500: '#7b25a6',
    950: '#000000',
  },
}
SCSS
$custom: #7b25a6;
$custom-light: #a66ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b25a6",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 280,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.19661,
    "h": 311.3
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#7B25A6
secondary
#83C364
accent
#E74178
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B25A6

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

Preview Lab → · Contrast checker → · Palette generator →

#7B25A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva