#7F308B#7F308B

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

Color values

HEX#7F308B
RGBrgb(127, 48, 139)
HSLhsl(292, 49%, 37%)
HSVhsv(292, 65%, 55%)
CMYKcmyk(8.6%, 65.5%, 0%, 45.5%)
CIE-LABlab(34.98, 47.21, -35.05)
CIE-LCHlch(34.98, 58.80, 323.41°)
OKLaboklab(45.98% 0.1257 -0.0976)
OKLCHoklch(45.98% 0.159 322.2)
XYZxyz(14.4691, 8.4908, 25.2978)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F308B #3C8B30
analogous
#52308B #7F308B #8B306A
triadic
#7F308B #8B7F30 #308B7F
tetradic
#7F308B #8B5230 #3C8B30 #306A8B
square
#7F308B #8B5230 #3C8B30 #306A8B
split-complementary
#7F308B #6A8B30 #308B52
monochromatic
#2C1130 #55205E #7F308B #A940B8 #BF6ACC

Accessibility & contrast

On white

7.78
#7F308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F308B
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F308B#FFFFFF#000000##FFFFFF
##7F308B1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8E
Deuteranopia (green-blind)
#3C5589
Tritanopia (blue-blind)
#813F59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f308b;
/* rgb */ color: rgb(127, 48, 139);
/* oklch */ color: oklch(46.0% 0.159 322.2);
Tailwind
colors: {
  custom: {
    50: '#a76ead',
    500: '#7f308b',
    950: '#000000',
  },
}
SCSS
$custom: #7f308b;
$custom-light: #a76ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7f308b",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 292.088,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45981,
    "c": 0.15914,
    "h": 322.2
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#7F308B
secondary
#6EB364
accent
#D85062
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F308B

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

Preview Lab → · Contrast checker → · Palette generator →

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