#7F1DB3#7F1DB3

#7F1DB3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.1% C 0.217 H 309.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F1DB3
RGBrgb(127, 29, 179)
HSLhsl(279, 72%, 41%)
HSVhsv(279, 84%, 70%)
CMYKcmyk(29.1%, 83.8%, 0%, 29.8%)
CIE-LABlab(35.29, 62.42, -58.75)
CIE-LCHlch(35.29, 85.71, 316.73°)
OKLaboklab(47.08% 0.1381 -0.1669)
OKLCHoklch(47.08% 0.217 309.6)
XYZxyz(17.3268, 8.6458, 43.3951)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1DB3 #51B31D
analogous
#341DB3 #7F1DB3 #B31D9C
triadic
#7F1DB3 #B37F1D #1DB37F
tetradic
#7F1DB3 #B3341D #51B31D #1D9CB3
square
#7F1DB3 #B3341D #51B31D #1D9CB3
split-complementary
#7F1DB3 #9CB31D #1DB334
monochromatic
#340C4A #5A147E #7F1DB3 #A130DD #B964E6

Accessibility & contrast

On white

7.70
#7F1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1DB3
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1DB3#FFFFFF#000000##FFFFFF
##7F1DB31.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#77466B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f1db3;
/* rgb */ color: rgb(127, 29, 179);
/* oklch */ color: oklch(47.1% 0.217 309.6);
Tailwind
colors: {
  custom: {
    50: '#aa68cb',
    500: '#7f1db3',
    950: '#000000',
  },
}
SCSS
$custom: #7f1db3;
$custom-light: #aa68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1db3",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 279.2,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47077,
    "c": 0.21664,
    "h": 309.6
  },
  "luminance": 0.08645
}

Semantic roles & 50–950 ramp

primary
#7F1DB3
secondary
#86CB61
accent
#EF3978
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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