#7F26D4#7F26D4

#7F26D4 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.5% C 0.240 H 300.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7F26D4
RGBrgb(127, 38, 212)
HSLhsl(271, 70%, 49%)
HSVhsv(271, 82%, 83%)
CMYKcmyk(40.1%, 82.1%, 0%, 16.9%)
CIE-LABlab(38.99, 66.81, -72.03)
CIE-LCHlch(38.99, 98.25, 312.85°)
OKLaboklab(50.49% 0.1222 -0.206)
OKLCHoklch(50.49% 0.24 300.7)
XYZxyz(21.3262, 10.6515, 63.2070)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26D4 #7BD426
analogous
#2826D4 #7F26D4 #D426D2
triadic
#7F26D4 #D47F26 #26D47F
tetradic
#7F26D4 #D42826 #7BD426 #26D2D4
square
#7F26D4 #D42826 #7BD426 #26D2D4
split-complementary
#7F26D4 #D2D426 #26D428
monochromatic
#41136C #601DA0 #7F26D4 #9D56E1 #BB8AEA

Accessibility & contrast

On white

6.71
#7F26D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7F26D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F26D4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26D4#FFFFFF#000000##FFFFFF
##7F26D41.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD9
Deuteranopia (green-blind)
#005BD1
Tritanopia (blue-blind)
#6B5880
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f26d4;
/* rgb */ color: rgb(127, 38, 212);
/* oklch */ color: oklch(50.5% 0.240 300.7);
Tailwind
colors: {
  custom: {
    50: '#ac6de2',
    500: '#7f26d4',
    950: '#000000',
  },
}
SCSS
$custom: #7f26d4;
$custom-light: #ac6de2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26d4",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 212
  },
  "hsl": {
    "h": 270.69,
    "s": 69.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50486,
    "c": 0.23955,
    "h": 300.7
  },
  "luminance": 0.10652
}

Semantic roles & 50–950 ramp

primary
#7F26D4
secondary
#AAD482
accent
#EC3B92
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7F26D4

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

Preview Lab → · Contrast checker → · Palette generator →

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