#7F2EA8#7F2EA8

#7F2EA8 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.190 H 311.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7F2EA8
RGBrgb(127, 46, 168)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(24.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(36.54, 54.10, -50.15)
CIE-LCHlch(36.54, 73.77, 317.17°)
OKLaboklab(47.7% 0.1261 -0.1418)
OKLCHoklch(47.7% 0.19 311.7)
XYZxyz(16.7960, 9.2936, 37.9473)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EA8 #57A82E
analogous
#422EA8 #7F2EA8 #A82E94
triadic
#7F2EA8 #A87F2E #2EA87F
tetradic
#7F2EA8 #A8422E #57A82E #2E94A8
square
#7F2EA8 #A8422E #57A82E #2E94A8
split-complementary
#7F2EA8 #94A82E #2EA842
monochromatic
#361448 #5B2178 #7F2EA8 #A047CD #B877DA

Accessibility & contrast

On white

7.35
#7F2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EA8
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EA8#FFFFFF#000000##FFFFFF
##7F2EA81.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1D57A5
Tritanopia (blue-blind)
#7A4968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2ea8;
/* rgb */ color: rgb(127, 46, 168);
/* oklch */ color: oklch(47.7% 0.190 311.7);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7f2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ea8;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ea8",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 279.836,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47696,
    "c": 0.18978,
    "h": 311.7
  },
  "luminance": 0.09293
}

Semantic roles & 50–950 ramp

primary
#7F2EA8
secondary
#8CC270
accent
#E0487B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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