#7F25B4#7F25B4

#7F25B4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.211 H 308.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7F25B4
RGBrgb(127, 37, 180)
HSLhsl(278, 66%, 43%)
HSVhsv(278, 79%, 71%)
CMYKcmyk(29.4%, 79.4%, 0%, 29.4%)
CIE-LABlab(36.23, 60.11, -57.81)
CIE-LCHlch(36.23, 83.40, 316.12°)
OKLaboklab(47.76% 0.132 -0.1642)
OKLCHoklch(47.76% 0.211 308.8)
XYZxyz(17.6505, 9.1308, 44.0038)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F25B4 #5AB425
analogous
#3725B4 #7F25B4 #B425A2
triadic
#7F25B4 #B47F25 #25B47F
tetradic
#7F25B4 #B43725 #5AB425 #25A2B4
square
#7F25B4 #B43725 #5AB425 #25A2B4
split-complementary
#7F25B4 #A2B425 #25B437
monochromatic
#37104E #5B1B81 #7F25B4 #9F3FD7 #B871E2

Accessibility & contrast

On white

7.43
#7F25B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F25B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F25B4
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F25B4#FFFFFF#000000##FFFFFF
##7F25B41.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#774A6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f25b4;
/* rgb */ color: rgb(127, 37, 180);
/* oklch */ color: oklch(47.8% 0.211 308.8);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7f25b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f25b4;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f25b4",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 180
  },
  "hsl": {
    "h": 277.762,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.21071,
    "h": 308.8
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#7F25B4
secondary
#8EC96C
accent
#E93F7E
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F25B4

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

Preview Lab → · Contrast checker → · Palette generator →

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