#7F3095#7F3095

#7F3095 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.169 H 318.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7F3095
RGBrgb(127, 48, 149)
HSLhsl(287, 51%, 39%)
HSVhsv(287, 68%, 58%)
CMYKcmyk(14.8%, 67.8%, 0%, 41.6%)
CIE-LABlab(35.59, 49.23, -40.21)
CIE-LCHlch(35.59, 63.56, 320.76°)
OKLaboklab(46.61% 0.1256 -0.1127)
OKLCHoklch(46.61% 0.169 318.1)
XYZxyz(15.2334, 8.7965, 29.3234)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3095 #469530
analogous
#4C3095 #7F3095 #953078
triadic
#7F3095 #957F30 #30957F
tetradic
#7F3095 #954C30 #469530 #307895
square
#7F3095 #954C30 #469530 #307895
split-complementary
#7F3095 #789530 #30954C
monochromatic
#301238 #582167 #7F3095 #A641C2 #BB6FD1

Accessibility & contrast

On white

7.61
#7F3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F3095
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3095#FFFFFF#000000##FFFFFF
##7F30951.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064F98
Deuteranopia (green-blind)
#345693
Tritanopia (blue-blind)
#7F425E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f3095;
/* rgb */ color: rgb(127, 48, 149);
/* oklch */ color: oklch(46.6% 0.169 318.1);
Tailwind
colors: {
  custom: {
    50: '#a76fb5',
    500: '#7f3095',
    950: '#000000',
  },
}
SCSS
$custom: #7f3095;
$custom-light: #a76fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3095",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 286.931,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46612,
    "c": 0.16873,
    "h": 318.1
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

primary
#7F3095
secondary
#7AB869
accent
#DB4D6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F3095

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

Preview Lab → · Contrast checker → · Palette generator →

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