#7F2CA8#7F2CA8

#7F2CA8 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.192 H 311.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA8
RGBrgb(127, 44, 168)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 74%, 66%)
CMYKcmyk(24.4%, 73.8%, 0%, 34.1%)
CIE-LABlab(36.25, 54.92, -50.62)
CIE-LCHlch(36.25, 74.69, 317.33°)
OKLaboklab(47.49% 0.1281 -0.1432)
OKLCHoklch(47.49% 0.192 311.8)
XYZxyz(16.7197, 9.1410, 37.9218)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA8 #55A82C
analogous
#412CA8 #7F2CA8 #A82C93
triadic
#7F2CA8 #A87F2C #2CA87F
tetradic
#7F2CA8 #A8412C #55A82C #2C93A8
square
#7F2CA8 #A8412C #55A82C #2C93A8
split-complementary
#7F2CA8 #93A82C #2CA841
monochromatic
#361347 #5A1F78 #7F2CA8 #A043CE #B974DB

Accessibility & contrast

On white

7.43
#7F2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CA8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA8#FFFFFF#000000##FFFFFF
##7F2CA81.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1A57A5
Tritanopia (blue-blind)
#7A4868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ca8;
/* rgb */ color: rgb(127, 44, 168);
/* oklch */ color: oklch(47.5% 0.192 311.8);
Tailwind
colors: {
  custom: {
    50: '#a86dc3',
    500: '#7f2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca8;
$custom-light: #a86dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca8",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 280.161,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47491,
    "c": 0.19213,
    "h": 311.8
  },
  "luminance": 0.09141
}

Semantic roles & 50–950 ramp

primary
#7F2CA8
secondary
#8AC26E
accent
#E2467A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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