#7F2AB9#7F2AB9

#7F2AB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.211 H 307.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB9
RGBrgb(127, 42, 185)
HSLhsl(276, 63%, 45%)
HSVhsv(276, 77%, 73%)
CMYKcmyk(31.4%, 77.3%, 0%, 27.5%)
CIE-LABlab(37.25, 59.40, -59.12)
CIE-LCHlch(37.25, 83.81, 315.13°)
OKLaboklab(48.59% 0.1267 -0.1681)
OKLCHoklch(48.59% 0.211 307)
XYZxyz(18.3354, 9.6710, 46.7903)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB9 #64B92A
analogous
#372AB9 #7F2AB9 #B92AAC
triadic
#7F2AB9 #B97F2A #2AB97F
tetradic
#7F2AB9 #B9372A #64B92A #2AACB9
square
#7F2AB9 #B9372A #64B92A #2AACB9
split-complementary
#7F2AB9 #ACB92A #2AB937
monochromatic
#3B1355 #5D1F87 #7F2AB9 #9D4AD6 #B87CE1

Accessibility & contrast

On white

7.16
#7F2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7F2AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB9#FFFFFF#000000##FFFFFF
##7F2AB91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#754E71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2ab9;
/* rgb */ color: rgb(127, 42, 185);
/* oklch */ color: oklch(48.6% 0.211 307.0);
Tailwind
colors: {
  custom: {
    50: '#aa6dcf',
    500: '#7f2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab9;
$custom-light: #aa6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab9",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 275.664,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48587,
    "c": 0.21055,
    "h": 307
  },
  "luminance": 0.09671
}

Semantic roles & 50–950 ramp

primary
#7F2AB9
secondary
#97CA75
accent
#E64284
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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