#7F308A#7F308A

#7F308A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.158 H 322.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7F308A
RGBrgb(127, 48, 138)
HSLhsl(293, 48%, 36%)
HSVhsv(293, 65%, 54%)
CMYKcmyk(8%, 65.2%, 0%, 45.9%)
CIE-LABlab(34.93, 47.02, -34.52)
CIE-LCHlch(34.93, 58.33, 323.71°)
OKLaboklab(45.92% 0.1257 -0.0961)
OKLCHoklch(45.92% 0.158 322.6)
XYZxyz(14.3963, 8.4617, 24.9148)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F308A #3B8A30
analogous
#52308A #7F308A #8A3068
triadic
#7F308A #8A7F30 #308A7F
tetradic
#7F308A #8A5230 #3B8A30 #30688A
square
#7F308A #8A5230 #3B8A30 #30688A
split-complementary
#7F308A #688A30 #308A52
monochromatic
#2B102F #55205D #7F308A #A940B7 #BF69CB

Accessibility & contrast

On white

7.80
#7F308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F308A
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F308A#FFFFFF#000000##FFFFFF
##7F308A1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#813E58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f308a;
/* rgb */ color: rgb(127, 48, 138);
/* oklch */ color: oklch(45.9% 0.158 322.6);
Tailwind
colors: {
  custom: {
    50: '#a76eac',
    500: '#7f308a',
    950: '#000000',
  },
}
SCSS
$custom: #7f308a;
$custom-light: #a76eac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f308a",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 292.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4592,
    "c": 0.15819,
    "h": 322.6
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#7F308A
secondary
#6DB264
accent
#D85060
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F308A

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

Preview Lab → · Contrast checker → · Palette generator →

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