#7F26B5#7F26B5

#7F26B5 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.211 H 308.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7F26B5
RGBrgb(127, 38, 181)
HSLhsl(277, 65%, 43%)
HSVhsv(277, 79%, 71%)
CMYKcmyk(29.8%, 79%, 0%, 29%)
CIE-LABlab(36.43, 59.98, -58.08)
CIE-LCHlch(36.43, 83.49, 315.92°)
OKLaboklab(47.92% 0.131 -0.165)
OKLCHoklch(47.92% 0.211 308.4)
XYZxyz(17.7843, 9.2347, 44.5527)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26B5 #5CB526
analogous
#3826B5 #7F26B5 #B526A3
triadic
#7F26B5 #B57F26 #26B57F
tetradic
#7F26B5 #B53826 #5CB526 #26A3B5
square
#7F26B5 #B53826 #5CB526 #26A3B5
split-complementary
#7F26B5 #A3B526 #26B538
monochromatic
#381150 #5C1B82 #7F26B5 #9E41D7 #B874E2

Accessibility & contrast

On white

7.38
#7F26B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F26B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26B5
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26B5#FFFFFF#000000##FFFFFF
##7F26B51.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#764B6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f26b5;
/* rgb */ color: rgb(127, 38, 181);
/* oklch */ color: oklch(47.9% 0.211 308.4);
Tailwind
colors: {
  custom: {
    50: '#a96bcc',
    500: '#7f26b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f26b5;
$custom-light: #a96bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26b5",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 181
  },
  "hsl": {
    "h": 277.343,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4792,
    "c": 0.2107,
    "h": 308.4
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

primary
#7F26B5
secondary
#90C96E
accent
#E8407F
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F26B5

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

Preview Lab → · Contrast checker → · Palette generator →

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