#7B25A2#7B25A2

#7B25A2 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.193 H 312.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7B25A2
RGBrgb(123, 37, 162)
HSLhsl(281, 63%, 39%)
HSVhsv(281, 77%, 64%)
CMYKcmyk(24.1%, 77.2%, 0%, 36.5%)
CIE-LABlab(34.28, 55.57, -50.24)
CIE-LCHlch(34.28, 74.91, 317.89°)
OKLaboklab(45.84% 0.1304 -0.1421)
OKLCHoklch(45.84% 0.193 312.5)
XYZxyz(15.3503, 8.1432, 34.9386)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B25A2 #4CA225
analogous
#3D25A2 #7B25A2 #A2258B
triadic
#7B25A2 #A27B25 #25A27B
tetradic
#7B25A2 #A23D25 #4CA225 #258BA2
square
#7B25A2 #A23D25 #4CA225 #258BA2
split-complementary
#7B25A2 #8BA225 #25A23D
monochromatic
#2F0E3E #551A70 #7B25A2 #A034D1 #B765DC

Accessibility & contrast

On white

7.99
#7B25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B25A2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B25A2#FFFFFF#000000##FFFFFF
##7B25A21.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#13529F
Tritanopia (blue-blind)
#764263
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b25a2;
/* rgb */ color: rgb(123, 37, 162);
/* oklch */ color: oklch(45.8% 0.193 312.5);
Tailwind
colors: {
  custom: {
    50: '#a669be',
    500: '#7b25a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b25a2;
$custom-light: #a669be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b25a2",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 281.28,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.19289,
    "h": 312.5
  },
  "luminance": 0.08143
}

Semantic roles & 50–950 ramp

primary
#7B25A2
secondary
#7FC261
accent
#E64275
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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