#7B287F#7B287F

#7B287F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.8% C 0.157 H 325.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7B287F
RGBrgb(123, 40, 127)
HSLhsl(297, 52%, 33%)
HSVhsv(297, 69%, 50%)
CMYKcmyk(3.1%, 68.5%, 0%, 50.2%)
CIE-LABlab(32.40, 47.40, -31.75)
CIE-LCHlch(32.40, 57.06, 326.18°)
OKLaboklab(43.76% 0.1302 -0.0881)
OKLCHoklch(43.76% 0.157 325.9)
XYZxyz(12.7577, 7.2617, 20.8042)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B287F #2C7F28
analogous
#4F287F #7B287F #7F2858
triadic
#7B287F #7F7B28 #287F7B
tetradic
#7B287F #7F4F28 #2C7F28 #28587F
square
#7B287F #7F4F28 #2C7F28 #28587F
split-complementary
#7B287F #587F28 #287F4F
monochromatic
#210B22 #4E1950 #7B287F #A837AE #C557CA

Accessibility & contrast

On white

8.56
#7B287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7B287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B287F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B287F#FFFFFF#000000##FFFFFF
##7B287F1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184682
Deuteranopia (green-blind)
#3A507D
Tritanopia (blue-blind)
#7E3550
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b287f;
/* rgb */ color: rgb(123, 40, 127);
/* oklch */ color: oklch(43.8% 0.157 325.9);
Tailwind
colors: {
  custom: {
    50: '#a469a4',
    500: '#7b287f',
    950: '#000000',
  },
}
SCSS
$custom: #7b287f;
$custom-light: #a469a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b287f",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 297.241,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43758,
    "c": 0.15719,
    "h": 325.9
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#7B287F
secondary
#58AF54
accent
#DC4C53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7B287F

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

Preview Lab → · Contrast checker → · Palette generator →

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