#7F2397#7F2397

#7F2397 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.186 H 318.2°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7F2397
RGBrgb(127, 35, 151)
HSLhsl(288, 62%, 36%)
HSVhsv(288, 77%, 59%)
CMYKcmyk(15.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(33.88, 54.85, -44.18)
CIE-LCHlch(33.88, 70.42, 321.15°)
OKLaboklab(45.43% 0.1391 -0.1242)
OKLCHoklch(45.43% 0.186 318.2)
XYZxyz(14.9386, 7.9491, 30.0196)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2397 #3B9723
analogous
#452397 #7F2397 #972375
triadic
#7F2397 #977F23 #23977F
tetradic
#7F2397 #974523 #3B9723 #237597
square
#7F2397 #974523 #3B9723 #237597
split-complementary
#7F2397 #759723 #239745
monochromatic
#2B0C34 #551765 #7F2397 #A92FC9 #BF5BD9

Accessibility & contrast

On white

8.11
#7F2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2397
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2397#FFFFFF#000000##FFFFFF
##7F23971.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#295294
Tritanopia (blue-blind)
#7E3C5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2397;
/* rgb */ color: rgb(127, 35, 151);
/* oklch */ color: oklch(45.4% 0.186 318.2);
Tailwind
colors: {
  custom: {
    50: '#a869b6',
    500: '#7f2397',
    950: '#000000',
  },
}
SCSS
$custom: #7f2397;
$custom-light: #a869b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2397",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 287.586,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.18645,
    "h": 318.2
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#7F2397
secondary
#6DBE58
accent
#E54264
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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