#7A307B#7A307B

#7A307B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.3% C 0.141 H 327.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7A307B
RGBrgb(122, 48, 123)
HSLhsl(299, 44%, 34%)
HSVhsv(299, 61%, 48%)
CMYKcmyk(0.8%, 61%, 0%, 51.8%)
CIE-LABlab(33.31, 42.78, -27.81)
CIE-LCHlch(33.31, 51.03, 326.97°)
OKLaboklab(44.32% 0.1187 -0.0767)
OKLCHoklch(44.32% 0.141 327.1)
XYZxyz(12.6579, 7.6823, 19.5512)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A307B #317B30
analogous
#54307B #7A307B #7B3056
triadic
#7A307B #7B7A30 #307B7A
tetradic
#7A307B #7B5430 #317B30 #30567B
square
#7A307B #7B5430 #317B30 #30567B
split-complementary
#7A307B #567B30 #307B54
monochromatic
#230E23 #4E1F4F #7A307B #A641A7 #C163C2

Accessibility & contrast

On white

8.28
#7A307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A307B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A307B#FFFFFF#000000##FFFFFF
##7A307B1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487D
Deuteranopia (green-blind)
#405279
Tritanopia (blue-blind)
#7D3951
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a307b;
/* rgb */ color: rgb(122, 48, 123);
/* oklch */ color: oklch(44.3% 0.141 327.1);
Tailwind
colors: {
  custom: {
    50: '#a36da1',
    500: '#7a307b',
    950: '#000000',
  },
}
SCSS
$custom: #7a307b;
$custom-light: #a36da1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a307b",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 299.2,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44319,
    "c": 0.14132,
    "h": 327.1
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#7A307B
secondary
#5EA95D
accent
#D45456
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070F
muted
#7F7A7E

Preview Lab

Preview with #7A307B

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

Preview Lab → · Contrast checker → · Palette generator →

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