#7F26A3#7F26A3

#7F26A3 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.6% C 0.194 H 313.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7F26A3
RGBrgb(127, 38, 163)
HSLhsl(283, 62%, 39%)
HSVhsv(283, 77%, 64%)
CMYKcmyk(22.1%, 76.7%, 0%, 36.1%)
CIE-LABlab(35.09, 56.18, -49.50)
CIE-LCHlch(35.09, 74.88, 318.62°)
OKLaboklab(46.55% 0.1346 -0.1398)
OKLCHoklch(46.55% 0.194 313.9)
XYZxyz(16.0552, 8.5431, 35.4465)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F26A3 #4AA326
analogous
#4126A3 #7F26A3 #A32689
triadic
#7F26A3 #A37F26 #26A37F
tetradic
#7F26A3 #A34126 #4AA326 #2689A3
square
#7F26A3 #A34126 #4AA326 #2689A3
split-complementary
#7F26A3 #89A326 #26A341
monochromatic
#320F40 #581A71 #7F26A3 #A436D0 #BA68DC

Accessibility & contrast

On white

7.75
#7F26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F26A3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F26A3#FFFFFF#000000##FFFFFF
##7F26A31.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1B55A0
Tritanopia (blue-blind)
#7B4363
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f26a3;
/* rgb */ color: rgb(127, 38, 163);
/* oklch */ color: oklch(46.6% 0.194 313.9);
Tailwind
colors: {
  custom: {
    50: '#a86abf',
    500: '#7f26a3',
    950: '#000000',
  },
}
SCSS
$custom: #7f26a3;
$custom-light: #a86abf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f26a3",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 282.72,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46554,
    "c": 0.19408,
    "h": 313.9
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

primary
#7F26A3
secondary
#7EC263
accent
#E54371
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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