#7A308C#7A308C

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

Color values

HEX#7A308C
RGBrgb(122, 48, 140)
HSLhsl(288, 49%, 37%)
HSVhsv(288, 66%, 55%)
CMYKcmyk(12.9%, 65.7%, 0%, 45.1%)
CIE-LABlab(34.28, 46.15, -36.82)
CIE-LCHlch(34.28, 59.04, 321.42°)
OKLaboklab(45.34% 0.1194 -0.1029)
OKLCHoklch(45.34% 0.158 319.2)
XYZxyz(13.8160, 8.1456, 25.6504)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A308C #428C30
analogous
#4C308C #7A308C #8C3070
triadic
#7A308C #8C7A30 #308C7A
tetradic
#7A308C #8C4C30 #428C30 #30708C
square
#7A308C #8C4C30 #428C30 #30708C
split-complementary
#7A308C #708C30 #308C4C
monochromatic
#2B1131 #52205E #7A308C #A240BA #B96ACC

Accessibility & contrast

On white

7.99
#7A308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7A308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A308C
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A308C#FFFFFF#000000##FFFFFF
##7A308C1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C8F
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#7A4059
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a308c;
/* rgb */ color: rgb(122, 48, 140);
/* oklch */ color: oklch(45.3% 0.158 319.2);
Tailwind
colors: {
  custom: {
    50: '#a36eae',
    500: '#7a308c',
    950: '#000000',
  },
}
SCSS
$custom: #7a308c;
$custom-light: #a36eae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a308c",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 288.261,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45339,
    "c": 0.15767,
    "h": 319.2
  },
  "luminance": 0.08145
}

Semantic roles & 50–950 ramp

primary
#7A308C
secondary
#74B364
accent
#D84F6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A308C

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

Preview Lab → · Contrast checker → · Palette generator →

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