#7E2F85#7E2F85

#7E2F85 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.154 H 324.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7E2F85
RGBrgb(126, 47, 133)
HSLhsl(295, 48%, 35%)
HSVhsv(295, 65%, 52%)
CMYKcmyk(5.3%, 64.7%, 0%, 47.8%)
CIE-LABlab(34.32, 46.24, -32.41)
CIE-LCHlch(34.32, 56.47, 324.98°)
OKLaboklab(45.36% 0.1255 -0.0899)
OKLCHoklch(45.36% 0.154 324.4)
XYZxyz(13.8540, 8.1629, 23.0316)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F85 #36852F
analogous
#532F85 #7E2F85 #852F61
triadic
#7E2F85 #857E2F #2F857E
tetradic
#7E2F85 #85532F #36852F #2F6185
square
#7E2F85 #85532F #36852F #2F6185
split-complementary
#7E2F85 #61852F #2F8553
monochromatic
#280F2B #531F58 #7E2F85 #A93FB2 #C166C9

Accessibility & contrast

On white

7.98
#7E2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F85
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F85#FFFFFF#000000##FFFFFF
##7E2F851.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4B88
Deuteranopia (green-blind)
#3E5483
Tritanopia (blue-blind)
#813C55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2f85;
/* rgb */ color: rgb(126, 47, 133);
/* oklch */ color: oklch(45.4% 0.154 324.4);
Tailwind
colors: {
  custom: {
    50: '#a66da9',
    500: '#7e2f85',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f85;
$custom-light: #a66da9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f85",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 295.116,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45357,
    "c": 0.15442,
    "h": 324.4
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#7E2F85
secondary
#67B060
accent
#D7505B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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