#7F2DB8#7F2DB8

#7F2DB8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.206 H 307.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB8
RGBrgb(127, 45, 184)
HSLhsl(275, 61%, 45%)
HSVhsv(275, 76%, 72%)
CMYKcmyk(31%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.57, 58.02, -58.00)
CIE-LCHlch(37.57, 82.04, 315.01°)
OKLaboklab(48.79% 0.1243 -0.1649)
OKLCHoklch(48.79% 0.206 307)
XYZxyz(18.3407, 9.8497, 46.2731)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB8 #66B82D
analogous
#3A2DB8 #7F2DB8 #B82DAB
triadic
#7F2DB8 #B87F2D #2DB87F
tetradic
#7F2DB8 #B83A2D #66B82D #2DABB8
square
#7F2DB8 #B83A2D #66B82D #2DABB8
split-complementary
#7F2DB8 #ABB82D #2DB83A
monochromatic
#3B1556 #5D2187 #7F2DB8 #9D4ED4 #B880E0

Accessibility & contrast

On white

7.07
#7F2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DB8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB8#FFFFFF#000000##FFFFFF
##7F2DB81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2db8;
/* rgb */ color: rgb(127, 45, 184);
/* oklch */ color: oklch(48.8% 0.206 307.0);
Tailwind
colors: {
  custom: {
    50: '#a96fce',
    500: '#7f2db8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db8;
$custom-light: #a96fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db8",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 275.396,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.20649,
    "h": 307
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#7F2DB8
secondary
#99C978
accent
#E44486
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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