#7C25B2#7C25B2

#7C25B2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.208 H 308.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7C25B2
RGBrgb(124, 37, 178)
HSLhsl(277, 66%, 42%)
HSVhsv(277, 79%, 70%)
CMYKcmyk(30.3%, 79.2%, 0%, 30.2%)
CIE-LABlab(35.64, 59.17, -57.61)
CIE-LCHlch(35.64, 82.58, 315.77°)
OKLaboklab(47.2% 0.1284 -0.1637)
OKLCHoklch(47.2% 0.208 308.1)
XYZxyz(17.0079, 8.8228, 42.9178)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C25B2 #5BB225
analogous
#3525B2 #7C25B2 #B225A2
triadic
#7C25B2 #B27C25 #25B27C
tetradic
#7C25B2 #B23525 #5BB225 #25A2B2
square
#7C25B2 #B23525 #5BB225 #25A2B2
split-complementary
#7C25B2 #A2B225 #25B235
monochromatic
#35104D #591A7F #7C25B2 #9C3DD7 #B670E1

Accessibility & contrast

On white

7.60
#7C25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7C25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C25B2
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C25B2#FFFFFF#000000##FFFFFF
##7C25B21.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#73496C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c25b2;
/* rgb */ color: rgb(124, 37, 178);
/* oklch */ color: oklch(47.2% 0.208 308.1);
Tailwind
colors: {
  custom: {
    50: '#a76aca',
    500: '#7c25b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c25b2;
$custom-light: #a76aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c25b2",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 277.021,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47203,
    "c": 0.20807,
    "h": 308.1
  },
  "luminance": 0.08823
}

Semantic roles & 50–950 ramp

primary
#7C25B2
secondary
#8EC86B
accent
#E93F80
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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