#7F2FB8#7F2FB8

#7F2FB8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.204 H 306.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB8
RGBrgb(127, 47, 184)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 72%)
CMYKcmyk(31%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.85, 57.22, -57.54)
CIE-LCHlch(37.85, 81.15, 314.84°)
OKLaboklab(48.99% 0.1225 -0.1635)
OKLCHoklch(48.99% 0.204 306.8)
XYZxyz(18.4188, 10.0060, 46.2991)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB8 #68B82F
analogous
#3A2FB8 #7F2FB8 #B82FAD
triadic
#7F2FB8 #B87F2F #2FB87F
tetradic
#7F2FB8 #B83A2F #68B82F #2FADB8
square
#7F2FB8 #B83A2F #68B82F #2FADB8
split-complementary
#7F2FB8 #ADB82F #2FB83A
monochromatic
#3C1657 #5D2387 #7F2FB8 #9D52D3 #B882DF

Accessibility & contrast

On white

7.00
#7F2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7F2FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FB8
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB8#FFFFFF#000000##FFFFFF
##7F2FB81.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#755071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2fb8;
/* rgb */ color: rgb(127, 47, 184);
/* oklch */ color: oklch(49.0% 0.204 306.8);
Tailwind
colors: {
  custom: {
    50: '#a970ce',
    500: '#7f2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb8;
$custom-light: #a970ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb8",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 275.036,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48991,
    "c": 0.20432,
    "h": 306.8
  },
  "luminance": 0.10006
}

Semantic roles & 50–950 ramp

primary
#7F2FB8
secondary
#9BC87B
accent
#E24587
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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