#7A308F#7A308F

#7A308F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.161 H 318.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7A308F
RGBrgb(122, 48, 143)
HSLhsl(287, 50%, 37%)
HSVhsv(287, 66%, 56%)
CMYKcmyk(14.7%, 66.4%, 0%, 43.9%)
CIE-LABlab(34.47, 46.78, -38.37)
CIE-LCHlch(34.47, 60.50, 320.64°)
OKLaboklab(45.53% 0.1194 -0.1074)
OKLCHoklch(45.53% 0.161 318)
XYZxyz(14.0402, 8.2352, 26.8313)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A308F #458F30
analogous
#4B308F #7A308F #8F3074
triadic
#7A308F #8F7A30 #308F7A
tetradic
#7A308F #8F4B30 #458F30 #30748F
square
#7A308F #8F4B30 #458F30 #30748F
split-complementary
#7A308F #748F30 #308F4B
monochromatic
#2C1133 #532161 #7A308F #A13FBD #B86CCE

Accessibility & contrast

On white

7.93
#7A308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7A308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A308F
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A308F#FFFFFF#000000##FFFFFF
##7A308F1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C92
Deuteranopia (green-blind)
#34538D
Tritanopia (blue-blind)
#7A415B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a308f;
/* rgb */ color: rgb(122, 48, 143);
/* oklch */ color: oklch(45.5% 0.161 318.0);
Tailwind
colors: {
  custom: {
    50: '#a36eb0',
    500: '#7a308f',
    950: '#000000',
  },
}
SCSS
$custom: #7a308f;
$custom-light: #a36eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a308f",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 286.737,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45531,
    "c": 0.16064,
    "h": 318
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#7A308F
secondary
#77B566
accent
#D94F6D
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A308F

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

Preview Lab → · Contrast checker → · Palette generator →

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