#7F2DBE#7F2DBE

#7F2DBE is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.212 H 305.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7F2DBE
RGBrgb(127, 45, 190)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 76%, 75%)
CMYKcmyk(33.2%, 76.3%, 0%, 25.5%)
CIE-LABlab(38.03, 59.37, -60.78)
CIE-LCHlch(38.03, 84.97, 314.32°)
OKLaboklab(49.26% 0.123 -0.173)
OKLCHoklch(49.26% 0.212 305.4)
XYZxyz(18.9830, 10.1066, 49.6559)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DBE #6CBE2D
analogous
#362DBE #7F2DBE #BE2DB4
triadic
#7F2DBE #BE7F2D #2DBE7F
tetradic
#7F2DBE #BE362D #6CBE2D #2DB4BE
square
#7F2DBE #BE362D #6CBE2D #2DB4BE
split-complementary
#7F2DBE #B4BE2D #2DBE36
monochromatic
#3D165B #5E218D #7F2DBE #9D52D6 #B984E2

Accessibility & contrast

On white

6.95
#7F2DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7F2DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DBE
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DBE#FFFFFF#000000##FFFFFF
##7F2DBE1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#735274
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2dbe;
/* rgb */ color: rgb(127, 45, 190);
/* oklch */ color: oklch(49.3% 0.212 305.4);
Tailwind
colors: {
  custom: {
    50: '#aa6fd3',
    500: '#7f2dbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dbe;
$custom-light: #aa6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dbe",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 273.931,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49261,
    "c": 0.21232,
    "h": 305.4
  },
  "luminance": 0.10107
}

Semantic roles & 50–950 ramp

primary
#7F2DBE
secondary
#9ECB7C
accent
#E54389
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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