#7E2F9A#7E2F9A

#7E2F9A is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.175 H 315.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7E2F9A
RGBrgb(126, 47, 154)
HSLhsl(284, 53%, 39%)
HSVhsv(284, 69%, 60%)
CMYKcmyk(18.2%, 69.5%, 0%, 39.6%)
CIE-LABlab(35.60, 50.47, -43.24)
CIE-LCHlch(35.60, 66.46, 319.41°)
OKLaboklab(46.69% 0.1252 -0.1215)
OKLCHoklch(46.69% 0.175 315.9)
XYZxyz(15.4525, 8.8023, 31.4506)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F9A #4B9A2F
analogous
#492F9A #7E2F9A #9A2F81
triadic
#7E2F9A #9A7E2F #2F9A7E
tetradic
#7E2F9A #9A492F #4B9A2F #2F819A
square
#7E2F9A #9A492F #4B9A2F #2F819A
split-complementary
#7E2F9A #819A2F #2F9A49
monochromatic
#31123C #58216B #7E2F9A #A341C5 #B970D3

Accessibility & contrast

On white

7.61
#7E2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F9A
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F9A#FFFFFF#000000##FFFFFF
##7E2F9A1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#2E5698
Tritanopia (blue-blind)
#7C4461
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2f9a;
/* rgb */ color: rgb(126, 47, 154);
/* oklch */ color: oklch(46.7% 0.175 315.9);
Tailwind
colors: {
  custom: {
    50: '#a76eb8',
    500: '#7e2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f9a;
$custom-light: #a76eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f9a",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 284.299,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.17451,
    "h": 315.9
  },
  "luminance": 0.08802
}

Semantic roles & 50–950 ramp

primary
#7E2F9A
secondary
#7FBB6A
accent
#DD4B71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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