#7B279E#7B279E

#7B279E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.187 H 313.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7B279E
RGBrgb(123, 39, 158)
HSLhsl(282, 60%, 39%)
HSVhsv(282, 75%, 62%)
CMYKcmyk(22.2%, 75.3%, 0%, 38%)
CIE-LABlab(34.25, 53.97, -47.86)
CIE-LCHlch(34.25, 72.13, 318.44°)
OKLaboklab(45.73% 0.1292 -0.1351)
OKLCHoklch(45.73% 0.187 313.7)
XYZxyz(15.0644, 8.1311, 33.1170)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B279E #4A9E27
analogous
#3F279E #7B279E #9E2785
triadic
#7B279E #9E7B27 #279E7B
tetradic
#7B279E #9E3F27 #4A9E27 #27859E
square
#7B279E #9E3F27 #4A9E27 #27859E
split-complementary
#7B279E #859E27 #279E3F
monochromatic
#2F0F3C #551B6D #7B279E #A035CD #B766D9

Accessibility & contrast

On white

8.00
#7B279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B279E
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B279E#FFFFFF#000000##FFFFFF
##7B279E1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#1D529B
Tritanopia (blue-blind)
#774261
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b279e;
/* rgb */ color: rgb(123, 39, 158);
/* oklch */ color: oklch(45.7% 0.187 313.7);
Tailwind
colors: {
  custom: {
    50: '#a56abb',
    500: '#7b279e',
    950: '#000000',
  },
}
SCSS
$custom: #7b279e;
$custom-light: #a56abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b279e",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 282.353,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45727,
    "c": 0.18698,
    "h": 313.7
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#7B279E
secondary
#7DBF62
accent
#E44473
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B279E

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

Preview Lab → · Contrast checker → · Palette generator →

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