#7F2FB9#7F2FB9

#7F2FB9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.205 H 306.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB9
RGBrgb(127, 47, 185)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(31.4%, 74.6%, 0%, 27.5%)
CIE-LABlab(37.93, 57.44, -58.01)
CIE-LCHlch(37.93, 81.64, 314.72°)
OKLaboklab(49.07% 0.1223 -0.1649)
OKLCHoklch(49.07% 0.205 306.6)
XYZxyz(18.5240, 10.0480, 46.8531)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB9 #69B92F
analogous
#3A2FB9 #7F2FB9 #B92FAE
triadic
#7F2FB9 #B97F2F #2FB97F
tetradic
#7F2FB9 #B93A2F #69B92F #2FAEB9
square
#7F2FB9 #B93A2F #69B92F #2FAEB9
split-complementary
#7F2FB9 #AEB92F #2FB93A
monochromatic
#3C1657 #5D2388 #7F2FB9 #9D52D3 #B983DF

Accessibility & contrast

On white

6.98
#7F2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F2FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FB9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB9#FFFFFF#000000##FFFFFF
##7F2FB91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#755172
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2fb9;
/* rgb */ color: rgb(127, 47, 185);
/* oklch */ color: oklch(49.1% 0.205 306.6);
Tailwind
colors: {
  custom: {
    50: '#a970cf',
    500: '#7f2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb9;
$custom-light: #a970cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb9",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 274.783,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49068,
    "c": 0.2053,
    "h": 306.6
  },
  "luminance": 0.10048
}

Semantic roles & 50–950 ramp

primary
#7F2FB9
secondary
#9CC97B
accent
#E34587
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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