#7F26AD#7F26AD

#7F26AD is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.203 H 310.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7F26AD
RGBrgb(127, 38, 173)
HSLhsl(280, 64%, 41%)
HSVhsv(280, 78%, 68%)
CMYKcmyk(26.6%, 78%, 0%, 32.2%)
CIE-LABlab(35.82, 58.27, -54.31)
CIE-LCHlch(35.82, 79.66, 317.01°)
OKLaboklab(47.3% 0.1328 -0.154)
OKLCHoklch(47.3% 0.203 310.8)
XYZxyz(16.9869, 8.9158, 40.3531)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26AD #54AD26
analogous
#3C26AD #7F26AD #AD2698
triadic
#7F26AD #AD7F26 #26AD7F
tetradic
#7F26AD #AD3C26 #54AD26 #2698AD
square
#7F26AD #AD3C26 #54AD26 #2698AD
split-complementary
#7F26AD #98AD26 #26AD3C
monochromatic
#351049 #5A1B7B #7F26AD #A03CD4 #B96EDF

Accessibility & contrast

On white

7.55
#7F26AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F26AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26AD
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26AD#FFFFFF#000000##FFFFFF
##7F26AD1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#0056AA
Tritanopia (blue-blind)
#794769
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f26ad;
/* rgb */ color: rgb(127, 38, 173);
/* oklch */ color: oklch(47.3% 0.203 310.8);
Tailwind
colors: {
  custom: {
    50: '#a96bc6',
    500: '#7f26ad',
    950: '#000000',
  },
}
SCSS
$custom: #7f26ad;
$custom-light: #a96bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26ad",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 279.556,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47301,
    "c": 0.2033,
    "h": 310.8
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#7F26AD
secondary
#89C669
accent
#E74179
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F26AD

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

Preview Lab → · Contrast checker → · Palette generator →

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