#7E27B3#7E27B3

#7E27B3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.208 H 308.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E27B3
RGBrgb(126, 39, 179)
HSLhsl(277, 64%, 43%)
HSVhsv(277, 78%, 70%)
CMYKcmyk(29.6%, 78.2%, 0%, 29.8%)
CIE-LABlab(36.26, 59.02, -57.19)
CIE-LCHlch(36.26, 82.18, 315.90°)
OKLaboklab(47.72% 0.1293 -0.1625)
OKLCHoklch(47.72% 0.208 308.5)
XYZxyz(17.4647, 9.1416, 43.4836)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E27B3 #5CB327
analogous
#3827B3 #7E27B3 #B327A2
triadic
#7E27B3 #B37E27 #27B37E
tetradic
#7E27B3 #B33827 #5CB327 #27A2B3
square
#7E27B3 #B33827 #5CB327 #27A2B3
split-complementary
#7E27B3 #A2B327 #27B338
monochromatic
#37114E #5B1C81 #7E27B3 #9E41D6 #B774E1

Accessibility & contrast

On white

7.43
#7E27B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E27B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E27B3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E27B3#FFFFFF#000000##FFFFFF
##7E27B31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#764A6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e27b3;
/* rgb */ color: rgb(126, 39, 179);
/* oklch */ color: oklch(47.7% 0.208 308.5);
Tailwind
colors: {
  custom: {
    50: '#a96bcb',
    500: '#7e27b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e27b3;
$custom-light: #a96bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e27b3",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 277.286,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47718,
    "c": 0.2076,
    "h": 308.5
  },
  "luminance": 0.09141
}

Semantic roles & 50–950 ramp

primary
#7E27B3
secondary
#90C86E
accent
#E74180
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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