#7F2FBE#7F2FBE

#7F2FBE is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.210 H 305.2°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7F2FBE
RGBrgb(127, 47, 190)
HSLhsl(274, 60%, 46%)
HSVhsv(274, 75%, 75%)
CMYKcmyk(33.2%, 75.3%, 0%, 25.5%)
CIE-LABlab(38.31, 58.57, -60.33)
CIE-LCHlch(38.31, 84.09, 314.15°)
OKLaboklab(49.46% 0.1213 -0.1717)
OKLCHoklch(49.46% 0.21 305.2)
XYZxyz(19.0611, 10.2629, 49.6820)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FBE #6EBE2F
analogous
#372FBE #7F2FBE #BE2FB6
triadic
#7F2FBE #BE7F2F #2FBE7F
tetradic
#7F2FBE #BE372F #6EBE2F #2FB6BE
square
#7F2FBE #BE372F #6EBE2F #2FB6BE
split-complementary
#7F2FBE #B6BE2F #2FBE37
monochromatic
#3D175C #5E238D #7F2FBE #9D55D5 #B986E1

Accessibility & contrast

On white

6.88
#7F2FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F2FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FBE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FBE#FFFFFF#000000##FFFFFF
##7F2FBE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#735375
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2fbe;
/* rgb */ color: rgb(127, 47, 190);
/* oklch */ color: oklch(49.5% 0.210 305.2);
Tailwind
colors: {
  custom: {
    50: '#aa70d3',
    500: '#7f2fbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fbe;
$custom-light: #aa70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fbe",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 273.566,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49456,
    "c": 0.21023,
    "h": 305.2
  },
  "luminance": 0.10263
}

Semantic roles & 50–950 ramp

primary
#7F2FBE
secondary
#A0CB7E
accent
#E3448A
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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