#7F2FB4#7F2FB4

#7F2FB4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.200 H 308.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB4
RGBrgb(127, 47, 180)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(29.4%, 73.9%, 0%, 29.4%)
CIE-LABlab(37.55, 56.32, -55.66)
CIE-LCHlch(37.55, 79.19, 315.34°)
OKLaboklab(48.69% 0.1232 -0.158)
OKLCHoklch(48.69% 0.2 308)
XYZxyz(18.0054, 9.8406, 44.1221)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB4 #64B42F
analogous
#3D2FB4 #7F2FB4 #B42FA7
triadic
#7F2FB4 #B47F2F #2FB47F
tetradic
#7F2FB4 #B43D2F #64B42F #2FA7B4
square
#7F2FB4 #B43D2F #64B42F #2FA7B4
split-complementary
#7F2FB4 #A7B42F #2FB43D
monochromatic
#3B1653 #5D2283 #7F2FB4 #9D4FD1 #B880DE

Accessibility & contrast

On white

7.08
#7F2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2FB4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB4#FFFFFF#000000##FFFFFF
##7F2FB41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#764F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2fb4;
/* rgb */ color: rgb(127, 47, 180);
/* oklch */ color: oklch(48.7% 0.200 308.0);
Tailwind
colors: {
  custom: {
    50: '#a96fcb',
    500: '#7f2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb4;
$custom-light: #a96fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb4",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 276.09,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48686,
    "c": 0.20038,
    "h": 308
  },
  "luminance": 0.0984
}

Semantic roles & 50–950 ramp

primary
#7F2FB4
secondary
#97C778
accent
#E24684
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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