#7B2286#7B2286

#7B2286 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.171 H 323.1°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7B2286
RGBrgb(123, 34, 134)
HSLhsl(293, 60%, 33%)
HSVhsv(293, 75%, 53%)
CMYKcmyk(8.2%, 74.6%, 0%, 47.5%)
CIE-LABlab(31.98, 51.08, -36.78)
CIE-LCHlch(31.98, 62.94, 324.25°)
OKLaboklab(43.6% 0.1366 -0.1026)
OKLCHoklch(43.6% 0.171 323.1)
XYZxyz(13.0431, 7.0770, 23.2286)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2286 #2D8622
analogous
#492286 #7B2286 #86225F
triadic
#7B2286 #867B22 #22867B
tetradic
#7B2286 #864922 #2D8622 #225F86
square
#7B2286 #864922 #2D8622 #225F86
split-complementary
#7B2286 #5F8622 #228649
monochromatic
#210924 #4E1655 #7B2286 #A82EB7 #C450D3

Accessibility & contrast

On white

8.69
#7B2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7B2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2286
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2286#FFFFFF#000000##FFFFFF
##7B22861.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#324F84
Tritanopia (blue-blind)
#7D3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2286;
/* rgb */ color: rgb(123, 34, 134);
/* oklch */ color: oklch(43.6% 0.171 323.1);
Tailwind
colors: {
  custom: {
    50: '#a467aa',
    500: '#7b2286',
    950: '#000000',
  },
}
SCSS
$custom: #7b2286;
$custom-light: #a467aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2286",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 293.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43598,
    "c": 0.1709,
    "h": 323.1
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#7B2286
secondary
#59B64E
accent
#E34556
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B2286

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

Preview Lab → · Contrast checker → · Palette generator →

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