#7B286E#7B286E

#7B286E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 42.8% C 0.143 H 334.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7B286E
RGBrgb(123, 40, 110)
HSLhsl(309, 51%, 32%)
HSVhsv(309, 67%, 48%)
CMYKcmyk(0%, 67.5%, 10.6%, 51.8%)
CIE-LABlab(31.48, 44.39, -22.47)
CIE-LCHlch(31.48, 49.75, 333.15°)
OKLaboklab(42.79% 0.1289 -0.0613)
OKLCHoklch(42.79% 0.143 334.6)
XYZxyz(11.7417, 6.8553, 15.4536)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B286E #287B35
analogous
#5F287B #7B286E #7B2844
triadic
#7B286E #6E7B28 #286E7B
tetradic
#7B286E #7B5F28 #287B35 #28447B
square
#7B286E #7B5F28 #287B35 #28447B
split-complementary
#7B286E #447B28 #287B5F
monochromatic
#1F0A1B #4D1945 #7B286E #A93797 #C856B6

Accessibility & contrast

On white

8.86
#7B286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B286E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B286E#FFFFFF#000000##FFFFFF
##7B286E1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274270
Deuteranopia (green-blind)
#434E6C
Tritanopia (blue-blind)
#812E47
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b286e;
/* rgb */ color: rgb(123, 40, 110);
/* oklch */ color: oklch(42.8% 0.143 334.6);
Tailwind
colors: {
  custom: {
    50: '#a46998',
    500: '#7b286e',
    950: '#000000',
  },
}
SCSS
$custom: #7b286e;
$custom-light: #a46998;
$custom-dark: #000000;
JSON
{
  "hex": "#7b286e",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 309.398,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42793,
    "c": 0.1427,
    "h": 334.6
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#7B286E
secondary
#52AD60
accent
#DA634D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7B286E

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

Preview Lab → · Contrast checker → · Palette generator →

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