#7F368B#7F368B

#7F368B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.7% C 0.150 H 321.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7F368B
RGBrgb(127, 54, 139)
HSLhsl(292, 44%, 38%)
HSVhsv(292, 61%, 55%)
CMYKcmyk(8.6%, 61.2%, 0%, 45.5%)
CIE-LABlab(36.01, 44.38, -33.42)
CIE-LCHlch(36.01, 55.55, 323.02°)
OKLaboklab(46.73% 0.118 -0.0929)
OKLCHoklch(46.73% 0.15 321.8)
XYZxyz(14.7313, 9.0152, 25.3852)
Luminance0.0901 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F368B #428B36
analogous
#54368B #7F368B #8B366D
triadic
#7F368B #8B7F36 #368B7F
tetradic
#7F368B #8B5436 #428B36 #366D8B
square
#7F368B #8B5436 #428B36 #366D8B
split-complementary
#7F368B #6D8B36 #368B54
monochromatic
#2E1433 #57255F #7F368B #A747B7 #BC73C9

Accessibility & contrast

On white

7.49
#7F368B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F368B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F368B
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F368B#FFFFFF#000000##FFFFFF
##7F368B1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8E
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#80435B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f368b;
/* rgb */ color: rgb(127, 54, 139);
/* oklch */ color: oklch(46.7% 0.150 321.8);
Tailwind
colors: {
  custom: {
    50: '#a772ad',
    500: '#7f368b',
    950: '#000000',
  },
}
SCSS
$custom: #7f368b;
$custom-light: #a772ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f368b",
  "rgb": {
    "r": 127,
    "g": 54,
    "b": 139
  },
  "hsl": {
    "h": 291.529,
    "s": 44.041,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46727,
    "c": 0.15018,
    "h": 321.8
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#7F368B
secondary
#75B16C
accent
#D45466
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7F368B

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

Preview Lab → · Contrast checker → · Palette generator →

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