#7F26B1#7F26B1

#7F26B1 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.207 H 309.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F26B1
RGBrgb(127, 38, 177)
HSLhsl(278, 65%, 42%)
HSVhsv(278, 79%, 69%)
CMYKcmyk(28.2%, 78.5%, 0%, 30.6%)
CIE-LABlab(36.12, 59.12, -56.20)
CIE-LCHlch(36.12, 81.57, 316.45°)
OKLaboklab(47.61% 0.1319 -0.1595)
OKLCHoklch(47.61% 0.207 309.6)
XYZxyz(17.3797, 9.0729, 42.4221)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26B1 #58B126
analogous
#3926B1 #7F26B1 #B1269E
triadic
#7F26B1 #B17F26 #26B17F
tetradic
#7F26B1 #B13926 #58B126 #269EB1
square
#7F26B1 #B13926 #58B126 #269EB1
split-complementary
#7F26B1 #9EB126 #26B139
monochromatic
#37104C #5B1B7F #7F26B1 #9F3FD6 #B871E0

Accessibility & contrast

On white

7.46
#7F26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26B1
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26B1#FFFFFF#000000##FFFFFF
##7F26B11.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#78496B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f26b1;
/* rgb */ color: rgb(127, 38, 177);
/* oklch */ color: oklch(47.6% 0.207 309.6);
Tailwind
colors: {
  custom: {
    50: '#a96bc9',
    500: '#7f26b1',
    950: '#000000',
  },
}
SCSS
$custom: #7f26b1;
$custom-light: #a96bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26b1",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 278.417,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47608,
    "c": 0.20699,
    "h": 309.6
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#7F26B1
secondary
#8CC76B
accent
#E8407C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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