#7F308D#7F308D

#7F308D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.161 H 321.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7F308D
RGBrgb(127, 48, 141)
HSLhsl(291, 49%, 37%)
HSVhsv(291, 66%, 55%)
CMYKcmyk(9.9%, 66%, 0%, 44.7%)
CIE-LABlab(35.10, 47.61, -36.09)
CIE-LCHlch(35.10, 59.74, 322.84°)
OKLaboklab(46.1% 0.1257 -0.1006)
OKLCHoklch(46.1% 0.161 321.3)
XYZxyz(14.6165, 8.5498, 26.0745)
Luminance0.0855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F308D #3E8D30
analogous
#51308D #7F308D #8D306D
triadic
#7F308D #8D7F30 #308D7F
tetradic
#7F308D #8D5130 #3E8D30 #306D8D
square
#7F308D #8D5130 #3E8D30 #306D8D
split-complementary
#7F308D #6D8D30 #308D51
monochromatic
#2D1132 #56205F #7F308D #A840BB #BE6BCD

Accessibility & contrast

On white

7.75
#7F308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F308D
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F308D#FFFFFF#000000##FFFFFF
##7F308D1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#3A568B
Tritanopia (blue-blind)
#803F5A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f308d;
/* rgb */ color: rgb(127, 48, 141);
/* oklch */ color: oklch(46.1% 0.161 321.3);
Tailwind
colors: {
  custom: {
    50: '#a76eaf',
    500: '#7f308d',
    950: '#000000',
  },
}
SCSS
$custom: #7f308d;
$custom-light: #a76eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f308d",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 290.968,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46104,
    "c": 0.16104,
    "h": 321.3
  },
  "luminance": 0.08549
}

Semantic roles & 50–950 ramp

primary
#7F308D
secondary
#71B465
accent
#D94F64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F308D

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

Preview Lab → · Contrast checker → · Palette generator →

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