#7F2EA9#7F2EA9

#7F2EA9 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.191 H 311.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA9
RGBrgb(127, 46, 169)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(24.9%, 72.8%, 0%, 33.7%)
CIE-LABlab(36.61, 54.32, -50.64)
CIE-LCHlch(36.61, 74.26, 317.01°)
OKLaboklab(47.77% 0.126 -0.1432)
OKLCHoklch(47.77% 0.191 311.3)
XYZxyz(16.8895, 9.3310, 38.4398)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA9 #58A92E
analogous
#422EA9 #7F2EA9 #A92E96
triadic
#7F2EA9 #A97F2E #2EA97F
tetradic
#7F2EA9 #A9422E #58A92E #2E96A9
square
#7F2EA9 #A9422E #58A92E #2E96A9
split-complementary
#7F2EA9 #96A92E #2EA942
monochromatic
#371449 #5B2179 #7F2EA9 #9F47CD #B877DA

Accessibility & contrast

On white

7.33
#7F2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA9
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA9#FFFFFF#000000##FFFFFF
##7F2EA91.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1B58A6
Tritanopia (blue-blind)
#7A4969
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2ea9;
/* rgb */ color: rgb(127, 46, 169);
/* oklch */ color: oklch(47.8% 0.191 311.3);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7f2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea9;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea9",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 279.512,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.19076,
    "h": 311.3
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

primary
#7F2EA9
secondary
#8CC271
accent
#E0477C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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