#7F26C5#7F26C5

#7F26C5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.2% C 0.226 H 304.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7F26C5
RGBrgb(127, 38, 197)
HSLhsl(274, 68%, 46%)
HSVhsv(274, 81%, 77%)
CMYKcmyk(35.5%, 80.7%, 0%, 22.7%)
CIE-LABlab(37.72, 63.47, -65.40)
CIE-LCHlch(37.72, 91.14, 314.14°)
OKLaboklab(49.21% 0.1268 -0.1866)
OKLCHoklch(49.21% 0.226 304.2)
XYZxyz(19.5212, 9.9295, 53.7007)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26C5 #6CC526
analogous
#2F26C5 #7F26C5 #C526BB
triadic
#7F26C5 #C57F26 #26C57F
tetradic
#7F26C5 #C52F26 #6CC526 #26BBC5
square
#7F26C5 #C52F26 #6CC526 #26BBC5
split-complementary
#7F26C5 #BBC526 #26C52F
monochromatic
#3D125E #5E1C92 #7F26C5 #9D4CDC #B97FE6

Accessibility & contrast

On white

7.03
#7F26C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F26C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26C5
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26C5#FFFFFF#000000##FFFFFF
##7F26C51.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#715277
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f26c5;
/* rgb */ color: rgb(127, 38, 197);
/* oklch */ color: oklch(49.2% 0.226 304.2);
Tailwind
colors: {
  custom: {
    50: '#ab6cd8',
    500: '#7f26c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f26c5;
$custom-light: #ab6cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26c5",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 273.585,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49214,
    "c": 0.22557,
    "h": 304.2
  },
  "luminance": 0.09929
}

Semantic roles & 50–950 ramp

primary
#7F26C5
secondary
#9ECF78
accent
#EB3D8A
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #7F26C5

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

Preview Lab → · Contrast checker → · Palette generator →

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