#7F308E#7F308E

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

Color values

HEX#7F308E
RGBrgb(127, 48, 142)
HSLhsl(290, 49%, 37%)
HSVhsv(290, 66%, 56%)
CMYKcmyk(10.6%, 66.2%, 0%, 44.3%)
CIE-LABlab(35.16, 47.81, -36.61)
CIE-LCHlch(35.16, 60.22, 322.56°)
OKLaboklab(46.17% 0.1257 -0.1021)
OKLCHoklch(46.17% 0.162 320.9)
XYZxyz(14.6913, 8.5797, 26.4681)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F308E #3F8E30
analogous
#50308E #7F308E #8E306E
triadic
#7F308E #8E7F30 #308E7F
tetradic
#7F308E #8E5030 #3F8E30 #306E8E
square
#7F308E #8E5030 #3F8E30 #306E8E
split-complementary
#7F308E #6E8E30 #308E50
monochromatic
#2D1133 #562160 #7F308E #A83FBC #BD6BCD

Accessibility & contrast

On white

7.73
#7F308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F308E
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F308E#FFFFFF#000000##FFFFFF
##7F308E1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164D91
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#80405B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f308e;
/* rgb */ color: rgb(127, 48, 142);
/* oklch */ color: oklch(46.2% 0.162 320.9);
Tailwind
colors: {
  custom: {
    50: '#a76eaf',
    500: '#7f308e',
    950: '#000000',
  },
}
SCSS
$custom: #7f308e;
$custom-light: #a76eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f308e",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 290.426,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46166,
    "c": 0.162,
    "h": 320.9
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#7F308E
secondary
#72B465
accent
#D94F65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F308E

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

Preview Lab → · Contrast checker → · Palette generator →

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