#7B279D#7B279D

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

Color values

HEX#7B279D
RGBrgb(123, 39, 157)
HSLhsl(283, 60%, 38%)
HSVhsv(283, 75%, 62%)
CMYKcmyk(21.7%, 75.2%, 0%, 38.4%)
CIE-LABlab(34.18, 53.76, -47.36)
CIE-LCHlch(34.18, 71.65, 318.62°)
OKLaboklab(45.65% 0.1294 -0.1337)
OKLCHoklch(45.65% 0.186 314.1)
XYZxyz(14.9787, 8.0968, 32.6656)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B279D #499D27
analogous
#40279D #7B279D #9D2784
triadic
#7B279D #9D7B27 #279D7B
tetradic
#7B279D #9D4027 #499D27 #27849D
square
#7B279D #9D4027 #499D27 #27849D
split-complementary
#7B279D #849D27 #279D40
monochromatic
#2E0F3B #551B6C #7B279D #A135CD #B866D9

Accessibility & contrast

On white

8.02
#7B279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7B279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B279D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B279D#FFFFFF#000000##FFFFFF
##7B279D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#1F529A
Tritanopia (blue-blind)
#784160
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b279d;
/* rgb */ color: rgb(123, 39, 157);
/* oklch */ color: oklch(45.7% 0.186 314.1);
Tailwind
colors: {
  custom: {
    50: '#a56abb',
    500: '#7b279d',
    950: '#000000',
  },
}
SCSS
$custom: #7b279d;
$custom-light: #a56abb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b279d",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 282.712,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45654,
    "c": 0.18604,
    "h": 314.1
  },
  "luminance": 0.08096
}

Semantic roles & 50–950 ramp

primary
#7B279D
secondary
#7CBF61
accent
#E34472
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B279D

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

Preview Lab → · Contrast checker → · Palette generator →

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