#7F26BD#7F26BD

#7F26BD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.6% C 0.218 H 306.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7F26BD
RGBrgb(127, 38, 189)
HSLhsl(275, 67%, 45%)
HSVhsv(275, 80%, 74%)
CMYKcmyk(32.8%, 79.9%, 0%, 25.9%)
CIE-LABlab(37.06, 61.71, -61.78)
CIE-LCHlch(37.06, 87.32, 314.97°)
OKLaboklab(48.56% 0.129 -0.1759)
OKLCHoklch(48.56% 0.218 306.3)
XYZxyz(18.6288, 9.5726, 49.0005)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26BD #64BD26
analogous
#3326BD #7F26BD #BD26B0
triadic
#7F26BD #BD7F26 #26BD7F
tetradic
#7F26BD #BD3326 #64BD26 #26B0BD
square
#7F26BD #BD3326 #64BD26 #26B0BD
split-complementary
#7F26BD #B0BD26 #26BD33
monochromatic
#3B1257 #5D1C8A #7F26BD #9D46DA #B879E4

Accessibility & contrast

On white

7.21
#7F26BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F26BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26BD
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26BD#FFFFFF#000000##FFFFFF
##7F26BD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#744E72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f26bd;
/* rgb */ color: rgb(127, 38, 189);
/* oklch */ color: oklch(48.6% 0.218 306.3);
Tailwind
colors: {
  custom: {
    50: '#aa6cd2',
    500: '#7f26bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f26bd;
$custom-light: #aa6cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26bd",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 275.364,
    "s": 66.52,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48558,
    "c": 0.21812,
    "h": 306.3
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#7F26BD
secondary
#97CC73
accent
#E93E85
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F26BD

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

Preview Lab → · Contrast checker → · Palette generator →

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