#7F309F#7F309F

#7F309F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.178 H 314.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7F309F
RGBrgb(127, 48, 159)
HSLhsl(283, 54%, 41%)
HSVhsv(283, 70%, 62%)
CMYKcmyk(20.1%, 69.8%, 0%, 37.6%)
CIE-LABlab(36.23, 51.32, -45.24)
CIE-LCHlch(36.23, 68.41, 318.60°)
OKLaboklab(47.28% 0.125 -0.1274)
OKLCHoklch(47.28% 0.178 314.5)
XYZxyz(16.0663, 9.1297, 33.7100)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F309F #509F30
analogous
#48309F #7F309F #9F3087
triadic
#7F309F #9F7F30 #309F7F
tetradic
#7F309F #9F4830 #509F30 #30879F
square
#7F309F #9F4830 #509F30 #30879F
split-complementary
#7F309F #879F30 #309F48
monochromatic
#341441 #592270 #7F309F #A245C7 #B974D5

Accessibility & contrast

On white

7.43
#7F309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F309F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F309F#FFFFFF#000000##FFFFFF
##7F309F1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#2B579C
Tritanopia (blue-blind)
#7C4664
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f309f;
/* rgb */ color: rgb(127, 48, 159);
/* oklch */ color: oklch(47.3% 0.178 314.5);
Tailwind
colors: {
  custom: {
    50: '#a86fbc',
    500: '#7f309f',
    950: '#000000',
  },
}
SCSS
$custom: #7f309f;
$custom-light: #a86fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f309f",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 282.703,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47279,
    "c": 0.17849,
    "h": 314.5
  },
  "luminance": 0.09129
}

Semantic roles & 50–950 ramp

primary
#7F309F
secondary
#85BD6E
accent
#DD4B75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F309F

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

Preview Lab → · Contrast checker → · Palette generator →

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