#7F2FB7#7F2FB7

#7F2FB7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.203 H 307.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB7
RGBrgb(127, 47, 183)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 72%)
CMYKcmyk(30.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(37.78, 56.99, -57.08)
CIE-LCHlch(37.78, 80.66, 314.96°)
OKLaboklab(48.91% 0.1227 -0.1621)
OKLCHoklch(48.91% 0.203 307.1)
XYZxyz(18.3143, 9.9642, 45.7490)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB7 #67B72F
analogous
#3B2FB7 #7F2FB7 #B72FAB
triadic
#7F2FB7 #B77F2F #2FB77F
tetradic
#7F2FB7 #B73B2F #67B72F #2FABB7
square
#7F2FB7 #B73B2F #67B72F #2FABB7
split-complementary
#7F2FB7 #ABB72F #2FB73B
monochromatic
#3B1656 #5D2286 #7F2FB7 #9D51D2 #B882DF

Accessibility & contrast

On white

7.02
#7F2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FB7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB7#FFFFFF#000000##FFFFFF
##7F2FB71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#765071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2fb7;
/* rgb */ color: rgb(127, 47, 183);
/* oklch */ color: oklch(48.9% 0.203 307.1);
Tailwind
colors: {
  custom: {
    50: '#a96fcd',
    500: '#7f2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb7;
$custom-light: #a96fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb7",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 275.294,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48914,
    "c": 0.20334,
    "h": 307.1
  },
  "luminance": 0.09964
}

Semantic roles & 50–950 ramp

primary
#7F2FB7
secondary
#9AC87A
accent
#E24586
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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