#7B2895#7B2895

#7B2895 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.177 H 316.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7B2895
RGBrgb(123, 40, 149)
HSLhsl(286, 58%, 37%)
HSVhsv(286, 73%, 58%)
CMYKcmyk(17.4%, 73.2%, 0%, 41.6%)
CIE-LABlab(33.77, 51.71, -43.16)
CIE-LCHlch(33.77, 67.36, 320.15°)
OKLaboklab(45.19% 0.1294 -0.1214)
OKLCHoklch(45.19% 0.177 316.8)
XYZxyz(14.3512, 7.8991, 29.1967)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2895 #429528
analogous
#452895 #7B2895 #952879
triadic
#7B2895 #957B28 #28957B
tetradic
#7B2895 #954528 #429528 #287995
square
#7B2895 #954528 #429528 #287995
split-complementary
#7B2895 #799528 #289545
monochromatic
#2B0E35 #531B65 #7B2895 #A335C5 #BA62D5

Accessibility & contrast

On white

8.14
#7B2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2895
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2895#FFFFFF#000000##FFFFFF
##7B28951.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#295293
Tritanopia (blue-blind)
#7A3E5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2895;
/* rgb */ color: rgb(123, 40, 149);
/* oklch */ color: oklch(45.2% 0.177 316.8);
Tailwind
colors: {
  custom: {
    50: '#a56ab5',
    500: '#7b2895',
    950: '#000000',
  },
}
SCSS
$custom: #7b2895;
$custom-light: #a56ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2895",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 285.688,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45187,
    "c": 0.17737,
    "h": 316.8
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#7B2895
secondary
#74BB5E
accent
#E1476C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2895

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

Preview Lab → · Contrast checker → · Palette generator →

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