#7A2895#7A2895

#7A2895 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.177 H 316.4°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7A2895
RGBrgb(122, 40, 149)
HSLhsl(285, 58%, 37%)
HSVhsv(285, 73%, 58%)
CMYKcmyk(18.1%, 73.2%, 0%, 41.6%)
CIE-LABlab(33.62, 51.50, -43.41)
CIE-LCHlch(33.62, 67.35, 319.87°)
OKLaboklab(45.05% 0.1281 -0.1221)
OKLCHoklch(45.05% 0.177 316.4)
XYZxyz(14.2088, 7.8257, 29.1900)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2895 #439528
analogous
#442895 #7A2895 #952879
triadic
#7A2895 #957A28 #28957A
tetradic
#7A2895 #954428 #439528 #287995
square
#7A2895 #954428 #439528 #287995
split-complementary
#7A2895 #799528 #289544
monochromatic
#2B0E35 #521B65 #7A2895 #A235C5 #B962D5

Accessibility & contrast

On white

8.19
#7A2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2895
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2895#FFFFFF#000000##FFFFFF
##7A28951.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#285193
Tritanopia (blue-blind)
#783E5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2895;
/* rgb */ color: rgb(122, 40, 149);
/* oklch */ color: oklch(45.0% 0.177 316.4);
Tailwind
colors: {
  custom: {
    50: '#a46ab5',
    500: '#7a2895',
    950: '#000000',
  },
}
SCSS
$custom: #7a2895;
$custom-light: #a46ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2895",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 285.138,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45045,
    "c": 0.17697,
    "h": 316.4
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#7A2895
secondary
#75BB5E
accent
#E1476D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2895

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

Preview Lab → · Contrast checker → · Palette generator →

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