#7B278B#7B278B

#7B278B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.169 H 320.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7B278B
RGBrgb(123, 39, 139)
HSLhsl(290, 56%, 35%)
HSVhsv(290, 72%, 55%)
CMYKcmyk(11.5%, 71.9%, 0%, 45.5%)
CIE-LABlab(32.98, 50.11, -38.29)
CIE-LCHlch(32.98, 63.06, 322.62°)
OKLaboklab(44.41% 0.1312 -0.1071)
OKLCHoklch(44.41% 0.169 320.8)
XYZxyz(13.5536, 7.5268, 25.1600)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B278B #378B27
analogous
#49278B #7B278B #8B2769
triadic
#7B278B #8B7B27 #278B7B
tetradic
#7B278B #8B4927 #378B27 #27698B
square
#7B278B #8B4927 #378B27 #27698B
split-complementary
#7B278B #698B27 #278B49
monochromatic
#260C2B #511A5B #7B278B #A534BB #BE5BD1

Accessibility & contrast

On white

8.38
#7B278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B278B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B278B#FFFFFF#000000##FFFFFF
##7B278B1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#7C3956
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b278b;
/* rgb */ color: rgb(123, 39, 139);
/* oklch */ color: oklch(44.4% 0.169 320.8);
Tailwind
colors: {
  custom: {
    50: '#a469ad',
    500: '#7b278b',
    950: '#000000',
  },
}
SCSS
$custom: #7b278b;
$custom-light: #a469ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b278b",
  "rgb": {
    "r": 123,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 290.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44411,
    "c": 0.16933,
    "h": 320.8
  },
  "luminance": 0.07526
}

Semantic roles & 50–950 ramp

primary
#7B278B
secondary
#67B658
accent
#DF4861
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B278B

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

Preview Lab → · Contrast checker → · Palette generator →

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