#7B2295#7B2295

#7B2295 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.184 H 317.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7B2295
RGBrgb(123, 34, 149)
HSLhsl(286, 63%, 36%)
HSVhsv(286, 77%, 58%)
CMYKcmyk(17.4%, 77.2%, 0%, 41.6%)
CIE-LABlab(32.97, 53.99, -44.44)
CIE-LCHlch(32.97, 69.93, 320.54°)
OKLaboklab(44.62% 0.1352 -0.1251)
OKLCHoklch(44.62% 0.184 317.2)
XYZxyz(14.1644, 7.5256, 29.1344)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2295 #3C9522
analogous
#412295 #7B2295 #952275
triadic
#7B2295 #957B22 #22957B
tetradic
#7B2295 #954122 #3C9522 #227595
square
#7B2295 #954122 #3C9522 #227595
split-complementary
#7B2295 #759522 #229541
monochromatic
#290B31 #521763 #7B2295 #A42DC7 #BC58D9

Accessibility & contrast

On white

8.38
#7B2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2295
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2295#FFFFFF#000000##FFFFFF
##7B22951.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#245092
Tritanopia (blue-blind)
#7A3B5A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2295;
/* rgb */ color: rgb(123, 34, 149);
/* oklch */ color: oklch(44.6% 0.184 317.2);
Tailwind
colors: {
  custom: {
    50: '#a567b5',
    500: '#7b2295',
    950: '#000000',
  },
}
SCSS
$custom: #7b2295;
$custom-light: #a567b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2295",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 286.435,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44621,
    "c": 0.18419,
    "h": 317.2
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#7B2295
secondary
#6DBD56
accent
#E64267
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2295

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

Preview Lab → · Contrast checker → · Palette generator →

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