#7F2CBD#7F2CBD

#7F2CBD is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.212 H 305.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7F2CBD
RGBrgb(127, 44, 189)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 77%, 74%)
CMYKcmyk(32.8%, 76.7%, 0%, 25.9%)
CIE-LABlab(37.82, 59.53, -60.54)
CIE-LCHlch(37.82, 84.91, 314.52°)
OKLaboklab(49.09% 0.1241 -0.1723)
OKLCHoklch(49.09% 0.212 305.8)
XYZxyz(18.8363, 9.9877, 49.0697)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CBD #6ABD2C
analogous
#362CBD #7F2CBD #BD2CB2
triadic
#7F2CBD #BD7F2C #2CBD7F
tetradic
#7F2CBD #BD362C #6ABD2C #2CB2BD
square
#7F2CBD #BD362C #6ABD2C #2CB2BD
split-complementary
#7F2CBD #B2BD2C #2CBD36
monochromatic
#3C155A #5E208B #7F2CBD #9D50D6 #B982E2

Accessibility & contrast

On white

7.01
#7F2CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7F2CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2CBD
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CBD#FFFFFF#000000##FFFFFF
##7F2CBD1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#745174
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2cbd;
/* rgb */ color: rgb(127, 44, 189);
/* oklch */ color: oklch(49.1% 0.212 305.8);
Tailwind
colors: {
  custom: {
    50: '#aa6ed2',
    500: '#7f2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cbd;
$custom-light: #aa6ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cbd",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 274.345,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49088,
    "c": 0.21237,
    "h": 305.8
  },
  "luminance": 0.09988
}

Semantic roles & 50–950 ramp

primary
#7F2CBD
secondary
#9DCB7A
accent
#E54288
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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