#7F2DB2#7F2DB2

#7F2DB2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.201 H 308.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB2
RGBrgb(127, 45, 178)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 70%)
CMYKcmyk(28.7%, 74.7%, 0%, 30.2%)
CIE-LABlab(37.12, 56.69, -55.18)
CIE-LCHlch(37.12, 79.11, 315.77°)
OKLaboklab(48.33% 0.1255 -0.1566)
OKLCHoklch(48.33% 0.201 308.7)
XYZxyz(17.7250, 9.6035, 43.0308)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB2 #60B22D
analogous
#3C2DB2 #7F2DB2 #B22DA2
triadic
#7F2DB2 #B27F2D #2DB27F
tetradic
#7F2DB2 #B23C2D #60B22D #2DA2B2
square
#7F2DB2 #B23C2D #60B22D #2DA2B2
split-complementary
#7F2DB2 #A2B22D #2DB23C
monochromatic
#391450 #5C2181 #7F2DB2 #9E4BD1 #B87CDE

Accessibility & contrast

On white

7.19
#7F2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DB2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB2#FFFFFF#000000##FFFFFF
##7F2DB21.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#774D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2db2;
/* rgb */ color: rgb(127, 45, 178);
/* oklch */ color: oklch(48.3% 0.201 308.7);
Tailwind
colors: {
  custom: {
    50: '#a96eca',
    500: '#7f2db2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db2;
$custom-light: #a96eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db2",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 276.992,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.20066,
    "h": 308.7
  },
  "luminance": 0.09603
}

Semantic roles & 50–950 ramp

primary
#7F2DB2
secondary
#94C675
accent
#E34582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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