#7F2398#7F2398

#7F2398 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.187 H 317.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7F2398
RGBrgb(127, 35, 152)
HSLhsl(287, 63%, 37%)
HSVhsv(287, 77%, 60%)
CMYKcmyk(16.4%, 77%, 0%, 40.4%)
CIE-LABlab(33.95, 55.04, -44.68)
CIE-LCHlch(33.95, 70.89, 320.93°)
OKLaboklab(45.5% 0.139 -0.1257)
OKLCHoklch(45.5% 0.187 317.9)
XYZxyz(15.0201, 7.9818, 30.4491)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2398 #3C9823
analogous
#442398 #7F2398 #982377
triadic
#7F2398 #987F23 #23987F
tetradic
#7F2398 #984423 #3C9823 #237798
square
#7F2398 #984423 #3C9823 #237798
split-complementary
#7F2398 #779823 #239844
monochromatic
#2C0C35 #551866 #7F2398 #A92ECA #BF5CD9

Accessibility & contrast

On white

8.09
#7F2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2398
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2398#FFFFFF#000000##FFFFFF
##7F23981.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2398;
/* rgb */ color: rgb(127, 35, 152);
/* oklch */ color: oklch(45.5% 0.187 317.9);
Tailwind
colors: {
  custom: {
    50: '#a869b7',
    500: '#7f2398',
    950: '#000000',
  },
}
SCSS
$custom: #7f2398;
$custom-light: #a869b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2398",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 287.179,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45501,
    "c": 0.18734,
    "h": 317.9
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#7F2398
secondary
#6EBE59
accent
#E64265
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2398

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

Preview Lab → · Contrast checker → · Palette generator →

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