#7F2CB8#7F2CB8

#7F2CB8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.208 H 307.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB8
RGBrgb(127, 44, 184)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 72%)
CMYKcmyk(31%, 76.1%, 0%, 27.8%)
CIE-LABlab(37.43, 58.41, -58.23)
CIE-LCHlch(37.43, 82.48, 315.09°)
OKLaboklab(48.7% 0.1252 -0.1655)
OKLCHoklch(48.7% 0.208 307.1)
XYZxyz(18.3029, 9.7743, 46.2605)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB8 #65B82C
analogous
#392CB8 #7F2CB8 #B82CAB
triadic
#7F2CB8 #B87F2C #2CB87F
tetradic
#7F2CB8 #B8392C #65B82C #2CABB8
square
#7F2CB8 #B8392C #65B82C #2CABB8
split-complementary
#7F2CB8 #ABB82C #2CB839
monochromatic
#3B1455 #5D2087 #7F2CB8 #9D4DD4 #B87EE0

Accessibility & contrast

On white

7.11
#7F2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F2CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CB8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB8#FFFFFF#000000##FFFFFF
##7F2CB81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#754F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2cb8;
/* rgb */ color: rgb(127, 44, 184);
/* oklch */ color: oklch(48.7% 0.208 307.1);
Tailwind
colors: {
  custom: {
    50: '#a96ece',
    500: '#7f2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb8;
$custom-light: #a96ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb8",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 275.571,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48696,
    "c": 0.20755,
    "h": 307.1
  },
  "luminance": 0.09774
}

Semantic roles & 50–950 ramp

primary
#7F2CB8
secondary
#98C977
accent
#E54385
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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