#7C2E90#7C2E90

#7C2E90 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.165 H 318.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7C2E90
RGBrgb(124, 46, 144)
HSLhsl(288, 52%, 37%)
HSVhsv(288, 68%, 56%)
CMYKcmyk(13.9%, 68.1%, 0%, 43.5%)
CIE-LABlab(34.50, 48.38, -38.91)
CIE-LCHlch(34.50, 62.08, 321.19°)
OKLaboklab(45.64% 0.1243 -0.1089)
OKLCHoklch(45.64% 0.165 318.8)
XYZxyz(14.3225, 8.2533, 27.2188)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E90 #42902E
analogous
#4B2E90 #7C2E90 #902E73
triadic
#7C2E90 #907C2E #2E907C
tetradic
#7C2E90 #904B2E #42902E #2E7390
square
#7C2E90 #904B2E #42902E #2E7390
split-complementary
#7C2E90 #73902E #2E904B
monochromatic
#2C1033 #541F62 #7C2E90 #A43DBE #BA69CF

Accessibility & contrast

On white

7.92
#7C2E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C2E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E90
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E90#FFFFFF#000000##FFFFFF
##7C2E901.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084C93
Deuteranopia (green-blind)
#34548E
Tritanopia (blue-blind)
#7C405B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2e90;
/* rgb */ color: rgb(124, 46, 144);
/* oklch */ color: oklch(45.6% 0.165 318.8);
Tailwind
colors: {
  custom: {
    50: '#a56db1',
    500: '#7c2e90',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e90;
$custom-light: #a56db1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e90",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 287.755,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45639,
    "c": 0.1653,
    "h": 318.8
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#7C2E90
secondary
#75B664
accent
#DB4D6A
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2E90

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

Preview Lab → · Contrast checker → · Palette generator →

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