#7F26B3#7F26B3

#7F26B3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.209 H 309.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F26B3
RGBrgb(127, 38, 179)
HSLhsl(278, 65%, 43%)
HSVhsv(278, 79%, 70%)
CMYKcmyk(29.1%, 78.8%, 0%, 29.8%)
CIE-LABlab(36.28, 59.55, -57.14)
CIE-LCHlch(36.28, 82.53, 316.18°)
OKLaboklab(47.76% 0.1314 -0.1623)
OKLCHoklch(47.76% 0.209 309)
XYZxyz(17.5805, 9.1533, 43.4797)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26B3 #5AB326
analogous
#3826B3 #7F26B3 #B326A1
triadic
#7F26B3 #B37F26 #26B37F
tetradic
#7F26B3 #B33826 #5AB326 #26A1B3
square
#7F26B3 #B33826 #5AB326 #26A1B3
split-complementary
#7F26B3 #A1B326 #26B338
monochromatic
#37114E #5B1B81 #7F26B3 #9F40D6 #B872E1

Accessibility & contrast

On white

7.42
#7F26B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F26B3
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26B3#FFFFFF#000000##FFFFFF
##7F26B31.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#774A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f26b3;
/* rgb */ color: rgb(127, 38, 179);
/* oklch */ color: oklch(47.8% 0.209 309.0);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7f26b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f26b3;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26b3",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 179
  },
  "hsl": {
    "h": 277.872,
    "s": 64.977,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47763,
    "c": 0.20884,
    "h": 309
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#7F26B3
secondary
#8EC86D
accent
#E8407E
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F26B3

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

Preview Lab → · Contrast checker → · Palette generator →

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