#7F308F#7F308F

#7F308F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.163 H 320.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7F308F
RGBrgb(127, 48, 143)
HSLhsl(290, 50%, 37%)
HSVhsv(290, 66%, 56%)
CMYKcmyk(11.2%, 66.4%, 0%, 43.9%)
CIE-LABlab(35.22, 48.01, -37.13)
CIE-LCHlch(35.22, 60.69, 322.28°)
OKLaboklab(46.23% 0.1257 -0.1037)
OKLCHoklch(46.23% 0.163 320.5)
XYZxyz(14.7667, 8.6098, 26.8653)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F308F #408F30
analogous
#50308F #7F308F #8F306F
triadic
#7F308F #8F7F30 #308F7F
tetradic
#7F308F #8F5030 #408F30 #306F8F
square
#7F308F #8F5030 #408F30 #306F8F
split-complementary
#7F308F #6F8F30 #308F50
monochromatic
#2E1133 #562161 #7F308F #A83FBD #BD6CCE

Accessibility & contrast

On white

7.72
#7F308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F308F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F308F#FFFFFF#000000##FFFFFF
##7F308F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D92
Deuteranopia (green-blind)
#39568D
Tritanopia (blue-blind)
#80405B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f308f;
/* rgb */ color: rgb(127, 48, 143);
/* oklch */ color: oklch(46.2% 0.163 320.5);
Tailwind
colors: {
  custom: {
    50: '#a76eb0',
    500: '#7f308f',
    950: '#000000',
  },
}
SCSS
$custom: #7f308f;
$custom-light: #a76eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f308f",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 289.895,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46229,
    "c": 0.16295,
    "h": 320.5
  },
  "luminance": 0.08609
}

Semantic roles & 50–950 ramp

primary
#7F308F
secondary
#73B566
accent
#D94F66
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F308F

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

Preview Lab → · Contrast checker → · Palette generator →

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