#7F2DA9#7F2DA9

#7F2DA9 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.192 H 311.4°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7F2DA9
RGBrgb(127, 45, 169)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(24.9%, 73.4%, 0%, 33.7%)
CIE-LABlab(36.47, 54.73, -50.87)
CIE-LCHlch(36.47, 74.72, 317.09°)
OKLaboklab(47.67% 0.127 -0.1439)
OKLCHoklch(47.67% 0.192 311.4)
XYZxyz(16.8509, 9.2538, 38.4269)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA9 #57A92D
analogous
#412DA9 #7F2DA9 #A92D95
triadic
#7F2DA9 #A97F2D #2DA97F
tetradic
#7F2DA9 #A9412D #57A92D #2D95A9
square
#7F2DA9 #A9412D #57A92D #2D95A9
split-complementary
#7F2DA9 #95A92D #2DA941
monochromatic
#361348 #5B2079 #7F2DA9 #A046CE #B876DA

Accessibility & contrast

On white

7.37
#7F2DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F2DA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DA9
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DA9#FFFFFF#000000##FFFFFF
##7F2DA91.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2da9;
/* rgb */ color: rgb(127, 45, 169);
/* oklch */ color: oklch(47.7% 0.192 311.4);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7f2da9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da9;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da9",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 279.677,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47665,
    "c": 0.19194,
    "h": 311.4
  },
  "luminance": 0.09253
}

Semantic roles & 50–950 ramp

primary
#7F2DA9
secondary
#8CC26F
accent
#E1477B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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