#7F308C#7F308C

#7F308C is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.160 H 321.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7F308C
RGBrgb(127, 48, 140)
HSLhsl(292, 49%, 37%)
HSVhsv(292, 66%, 55%)
CMYKcmyk(9.3%, 65.7%, 0%, 45.1%)
CIE-LABlab(35.04, 47.41, -35.57)
CIE-LCHlch(35.04, 59.27, 323.12°)
OKLaboklab(46.04% 0.1257 -0.0991)
OKLCHoklch(46.04% 0.16 321.7)
XYZxyz(14.5425, 8.5201, 25.6844)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F308C #3D8C30
analogous
#51308C #7F308C #8C306B
triadic
#7F308C #8C7F30 #308C7F
tetradic
#7F308C #8C5130 #3D8C30 #306B8C
square
#7F308C #8C5130 #3D8C30 #306B8C
split-complementary
#7F308C #6B8C30 #308C51
monochromatic
#2C1131 #56205E #7F308C #A840BA #BE6ACC

Accessibility & contrast

On white

7.77
#7F308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F308C
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F308C#FFFFFF#000000##FFFFFF
##7F308C1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D8F
Deuteranopia (green-blind)
#3B558A
Tritanopia (blue-blind)
#803F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f308c;
/* rgb */ color: rgb(127, 48, 140);
/* oklch */ color: oklch(46.0% 0.160 321.7);
Tailwind
colors: {
  custom: {
    50: '#a76eae',
    500: '#7f308c',
    950: '#000000',
  },
}
SCSS
$custom: #7f308c;
$custom-light: #a76eae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f308c",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 291.522,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46042,
    "c": 0.16009,
    "h": 321.7
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#7F308C
secondary
#70B364
accent
#D84F63
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F308C

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

Preview Lab → · Contrast checker → · Palette generator →

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