#7B2285#7B2285

#7B2285 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.170 H 323.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7B2285
RGBrgb(123, 34, 133)
HSLhsl(294, 59%, 33%)
HSVhsv(294, 74%, 52%)
CMYKcmyk(7.5%, 74.4%, 0%, 47.8%)
CIE-LABlab(31.92, 50.90, -36.26)
CIE-LCHlch(31.92, 62.49, 324.54°)
OKLaboklab(43.53% 0.1367 -0.1011)
OKLCHoklch(43.53% 0.17 323.5)
XYZxyz(12.9737, 7.0492, 22.8630)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2285 #2C8522
analogous
#492285 #7B2285 #85225E
triadic
#7B2285 #857B22 #22857B
tetradic
#7B2285 #854922 #2C8522 #225E85
square
#7B2285 #854922 #2C8522 #225E85
split-complementary
#7B2285 #5E8522 #228549
monochromatic
#210924 #4E1654 #7B2285 #A82EB6 #C54FD2

Accessibility & contrast

On white

8.72
#7B2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7B2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2285
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2285#FFFFFF#000000##FFFFFF
##7B22851.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#334F83
Tritanopia (blue-blind)
#7D3451
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2285;
/* rgb */ color: rgb(123, 34, 133);
/* oklch */ color: oklch(43.5% 0.170 323.5);
Tailwind
colors: {
  custom: {
    50: '#a467a9',
    500: '#7b2285',
    950: '#000000',
  },
}
SCSS
$custom: #7b2285;
$custom-light: #a467a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2285",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 293.939,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43533,
    "c": 0.17003,
    "h": 323.5
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#7B2285
secondary
#58B64D
accent
#E24555
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B2285

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

Preview Lab → · Contrast checker → · Palette generator →

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