#7F309C#7F309C

#7F309C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.176 H 315.5°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7F309C
RGBrgb(127, 48, 156)
HSLhsl(284, 53%, 40%)
HSVhsv(284, 69%, 61%)
CMYKcmyk(18.6%, 69.2%, 0%, 38.8%)
CIE-LABlab(36.04, 50.68, -43.75)
CIE-LCHlch(36.04, 66.95, 319.20°)
OKLaboklab(47.08% 0.1253 -0.123)
OKLCHoklch(47.08% 0.176 315.5)
XYZxyz(15.8091, 9.0268, 32.3556)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F309C #4D9C30
analogous
#49309C #7F309C #9C3083
triadic
#7F309C #9C7F30 #309C7F
tetradic
#7F309C #9C4930 #4D9C30 #30839C
square
#7F309C #9C4930 #4D9C30 #30839C
split-complementary
#7F309C #839C30 #309C49
monochromatic
#33133E #59226D #7F309C #A344C5 #BA73D4

Accessibility & contrast

On white

7.49
#7F309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F309C
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F309C#FFFFFF#000000##FFFFFF
##7F309C1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#2E579A
Tritanopia (blue-blind)
#7D4562
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f309c;
/* rgb */ color: rgb(127, 48, 156);
/* oklch */ color: oklch(47.1% 0.176 315.5);
Tailwind
colors: {
  custom: {
    50: '#a76fba',
    500: '#7f309c',
    950: '#000000',
  },
}
SCSS
$custom: #7f309c;
$custom-light: #a76fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7f309c",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 283.889,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.47075,
    "c": 0.17555,
    "h": 315.5
  },
  "luminance": 0.09026
}

Semantic roles & 50–950 ramp

primary
#7F309C
secondary
#82BC6C
accent
#DC4B72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F309C

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

Preview Lab → · Contrast checker → · Palette generator →

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