#7A308D#7A308D

#7A308D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.159 H 318.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7A308D
RGBrgb(122, 48, 141)
HSLhsl(288, 49%, 37%)
HSVhsv(288, 66%, 55%)
CMYKcmyk(13.5%, 66%, 0%, 44.7%)
CIE-LABlab(34.35, 46.36, -37.34)
CIE-LCHlch(34.35, 59.53, 321.15°)
OKLaboklab(45.4% 0.1194 -0.1044)
OKLCHoklch(45.4% 0.159 318.8)
XYZxyz(13.8901, 8.1752, 26.0404)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A308D #438D30
analogous
#4C308D #7A308D #8D3072
triadic
#7A308D #8D7A30 #308D7A
tetradic
#7A308D #8D4C30 #438D30 #30728D
square
#7A308D #8D4C30 #438D30 #30728D
split-complementary
#7A308D #728D30 #308D4C
monochromatic
#2B1132 #52205F #7A308D #A240BB #B96BCD

Accessibility & contrast

On white

7.97
#7A308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A308D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A308D#FFFFFF#000000##FFFFFF
##7A308D1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C90
Deuteranopia (green-blind)
#35538B
Tritanopia (blue-blind)
#7A405A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a308d;
/* rgb */ color: rgb(122, 48, 141);
/* oklch */ color: oklch(45.4% 0.159 318.8);
Tailwind
colors: {
  custom: {
    50: '#a36eaf',
    500: '#7a308d',
    950: '#000000',
  },
}
SCSS
$custom: #7a308d;
$custom-light: #a36eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a308d",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 287.742,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.15866,
    "h": 318.8
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#7A308D
secondary
#75B465
accent
#D94F6B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A308D

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

Preview Lab → · Contrast checker → · Palette generator →

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