#7E27A2#7E27A2

#7E27A2 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.192 H 313.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7E27A2
RGBrgb(126, 39, 162)
HSLhsl(282, 61%, 39%)
HSVhsv(282, 76%, 64%)
CMYKcmyk(22.2%, 75.9%, 0%, 36.5%)
CIE-LABlab(34.99, 55.41, -49.06)
CIE-LCHlch(34.99, 74.00, 318.48°)
OKLaboklab(46.43% 0.1325 -0.1386)
OKLCHoklch(46.43% 0.192 313.7)
XYZxyz(15.8502, 8.4958, 34.9803)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27A2 #4BA227
analogous
#4127A2 #7E27A2 #A22789
triadic
#7E27A2 #A27E27 #27A27E
tetradic
#7E27A2 #A24127 #4BA227 #2789A2
square
#7E27A2 #A24127 #4BA227 #2789A2
split-complementary
#7E27A2 #89A227 #27A241
monochromatic
#310F3F #581B71 #7E27A2 #A337CF #B969DB

Accessibility & contrast

On white

7.78
#7E27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27A2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27A2#FFFFFF#000000##FFFFFF
##7E27A21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#1C549F
Tritanopia (blue-blind)
#7A4363
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e27a2;
/* rgb */ color: rgb(126, 39, 162);
/* oklch */ color: oklch(46.4% 0.192 313.7);
Tailwind
colors: {
  custom: {
    50: '#a86bbe',
    500: '#7e27a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e27a2;
$custom-light: #a86bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27a2",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 282.439,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.19175,
    "h": 313.7
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#7E27A2
secondary
#7FC164
accent
#E44373
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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