#7F2BA4#7F2BA4

#7F2BA4 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.189 H 313.2°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7F2BA4
RGBrgb(127, 43, 164)
HSLhsl(282, 58%, 41%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22.6%, 73.8%, 0%, 35.7%)
CIE-LABlab(35.83, 54.47, -48.90)
CIE-LCHlch(35.83, 73.20, 318.08°)
OKLaboklab(47.1% 0.1297 -0.1381)
OKLCHoklch(47.1% 0.189 313.2)
XYZxyz(16.3159, 8.9206, 35.9771)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BA4 #50A42B
analogous
#422BA4 #7F2BA4 #A42B8C
triadic
#7F2BA4 #A47F2B #2BA47F
tetradic
#7F2BA4 #A4422B #50A42B #2B8CA4
square
#7F2BA4 #A4422B #50A42B #2B8CA4
split-complementary
#7F2BA4 #8CA42B #2BA442
monochromatic
#341243 #591E74 #7F2BA4 #A23FCD #B970D9

Accessibility & contrast

On white

7.54
#7F2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BA4
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BA4#FFFFFF#000000##FFFFFF
##7F2BA41.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2056A1
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2ba4;
/* rgb */ color: rgb(127, 43, 164);
/* oklch */ color: oklch(47.1% 0.189 313.2);
Tailwind
colors: {
  custom: {
    50: '#a86dc0',
    500: '#7f2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ba4;
$custom-light: #a86dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ba4",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 281.653,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47101,
    "c": 0.18946,
    "h": 313.2
  },
  "luminance": 0.0892
}

Semantic roles & 50–950 ramp

primary
#7F2BA4
secondary
#85C16A
accent
#E24676
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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