#7F309A#7F309A

#7F309A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.174 H 316.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7F309A
RGBrgb(127, 48, 154)
HSLhsl(285, 52%, 40%)
HSVhsv(285, 69%, 60%)
CMYKcmyk(17.5%, 68.8%, 0%, 39.6%)
CIE-LABlab(35.91, 50.26, -42.74)
CIE-LCHlch(35.91, 65.98, 319.62°)
OKLaboklab(46.94% 0.1254 -0.1201)
OKLCHoklch(46.94% 0.174 316.2)
XYZxyz(15.6412, 8.9596, 31.4711)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F309A #4B9A30
analogous
#4A309A #7F309A #9A3080
triadic
#7F309A #9A7F30 #309A7F
tetradic
#7F309A #9A4A30 #4B9A30 #30809A
square
#7F309A #9A4A30 #4B9A30 #30809A
split-complementary
#7F309A #809A30 #309A4A
monochromatic
#32133D #59216B #7F309A #A343C4 #BA72D3

Accessibility & contrast

On white

7.52
#7F309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7F309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F309A
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F309A#FFFFFF#000000##FFFFFF
##7F309A1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#7D4461
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f309a;
/* rgb */ color: rgb(127, 48, 154);
/* oklch */ color: oklch(46.9% 0.174 316.2);
Tailwind
colors: {
  custom: {
    50: '#a76fb8',
    500: '#7f309a',
    950: '#000000',
  },
}
SCSS
$custom: #7f309a;
$custom-light: #a76fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f309a",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 284.717,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46941,
    "c": 0.1736,
    "h": 316.2
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#7F309A
secondary
#7FBB6B
accent
#DC4C71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F309A

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

Preview Lab → · Contrast checker → · Palette generator →

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