#7B286F#7B286F

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

Color values

HEX#7B286F
RGBrgb(123, 40, 111)
HSLhsl(309, 51%, 32%)
HSVhsv(309, 67%, 48%)
CMYKcmyk(0%, 67.5%, 9.8%, 51.8%)
CIE-LABlab(31.53, 44.55, -23.03)
CIE-LCHlch(31.53, 50.15, 332.67°)
OKLaboklab(42.85% 0.129 -0.0629)
OKLCHoklch(42.85% 0.144 334)
XYZxyz(11.7965, 6.8772, 15.7420)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B286F #287B34
analogous
#5E287B #7B286F #7B2846
triadic
#7B286F #6F7B28 #286F7B
tetradic
#7B286F #7B5E28 #287B34 #28467B
square
#7B286F #7B5E28 #287B34 #28467B
split-complementary
#7B286F #467B28 #287B5E
monochromatic
#1F0A1C #4D1945 #7B286F #A93799 #C856B7

Accessibility & contrast

On white

8.84
#7B286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7B286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B286F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B286F#FFFFFF#000000##FFFFFF
##7B286F1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274271
Deuteranopia (green-blind)
#424F6D
Tritanopia (blue-blind)
#812E48
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b286f;
/* rgb */ color: rgb(123, 40, 111);
/* oklch */ color: oklch(42.8% 0.144 334.0);
Tailwind
colors: {
  custom: {
    50: '#a46998',
    500: '#7b286f',
    950: '#000000',
  },
}
SCSS
$custom: #7b286f;
$custom-light: #a46998;
$custom-dark: #000000;
JSON
{
  "hex": "#7b286f",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 308.675,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42846,
    "c": 0.14351,
    "h": 334
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#7B286F
secondary
#52AD5F
accent
#DA624D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070D
muted
#7F7A7E

Preview Lab

Preview with #7B286F

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

Preview Lab → · Contrast checker → · Palette generator →

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