#7F2FBB#7F2FBB

#7F2FBB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.207 H 306.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7F2FBB
RGBrgb(127, 47, 187)
HSLhsl(274, 60%, 46%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(32.1%, 74.9%, 0%, 26.7%)
CIE-LABlab(38.08, 57.89, -58.94)
CIE-LCHlch(38.08, 82.62, 314.48°)
OKLaboklab(49.22% 0.1219 -0.1676)
OKLCHoklch(49.22% 0.207 306)
XYZxyz(18.7366, 10.1331, 47.9729)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FBB #6BBB2F
analogous
#392FBB #7F2FBB #BB2FB1
triadic
#7F2FBB #BB7F2F #2FBB7F
tetradic
#7F2FBB #BB392F #6BBB2F #2FB1BB
square
#7F2FBB #BB392F #6BBB2F #2FB1BB
split-complementary
#7F2FBB #B1BB2F #2FBB39
monochromatic
#3D1659 #5E238A #7F2FBB #9D53D4 #B984E0

Accessibility & contrast

On white

6.94
#7F2FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7F2FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FBB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FBB#FFFFFF#000000##FFFFFF
##7F2FBB1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#745173
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2fbb;
/* rgb */ color: rgb(127, 47, 187);
/* oklch */ color: oklch(49.2% 0.207 306.0);
Tailwind
colors: {
  custom: {
    50: '#a970d0',
    500: '#7f2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fbb;
$custom-light: #a970d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fbb",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 274.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49222,
    "c": 0.20727,
    "h": 306
  },
  "luminance": 0.10133
}

Semantic roles & 50–950 ramp

primary
#7F2FBB
secondary
#9DC97C
accent
#E34589
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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