#7A308B#7A308B

#7A308B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.157 H 319.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7A308B
RGBrgb(122, 48, 139)
HSLhsl(289, 49%, 37%)
HSVhsv(289, 65%, 55%)
CMYKcmyk(12.2%, 65.5%, 0%, 45.5%)
CIE-LABlab(34.22, 45.95, -36.30)
CIE-LCHlch(34.22, 58.56, 321.69°)
OKLaboklab(45.28% 0.1195 -0.1014)
OKLCHoklch(45.28% 0.157 319.7)
XYZxyz(13.7426, 8.1162, 25.2638)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A308B #418B30
analogous
#4D308B #7A308B #8B306F
triadic
#7A308B #8B7A30 #308B7A
tetradic
#7A308B #8B4D30 #418B30 #306F8B
square
#7A308B #8B4D30 #418B30 #306F8B
split-complementary
#7A308B #6F8B30 #308B4D
monochromatic
#2A1130 #52205E #7A308B #A240B8 #B96ACC

Accessibility & contrast

On white

8.01
#7A308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7A308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A308B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A308B#FFFFFF#000000##FFFFFF
##7A308B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8E
Deuteranopia (green-blind)
#375389
Tritanopia (blue-blind)
#7A3F59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a308b;
/* rgb */ color: rgb(122, 48, 139);
/* oklch */ color: oklch(45.3% 0.157 319.7);
Tailwind
colors: {
  custom: {
    50: '#a36ead',
    500: '#7a308b',
    950: '#000000',
  },
}
SCSS
$custom: #7a308b;
$custom-light: #a36ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7a308b",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 288.791,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45275,
    "c": 0.15669,
    "h": 319.7
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#7A308B
secondary
#73B364
accent
#D85069
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A308B

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

Preview Lab → · Contrast checker → · Palette generator →

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