#7C239C#7C239C

#7C239C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.190 H 315.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7C239C
RGBrgb(124, 35, 156)
HSLhsl(284, 63%, 37%)
HSVhsv(284, 78%, 61%)
CMYKcmyk(20.5%, 77.6%, 0%, 38.8%)
CIE-LABlab(33.75, 55.24, -47.45)
CIE-LCHlch(33.75, 72.83, 319.34°)
OKLaboklab(45.36% 0.1345 -0.1339)
OKLCHoklch(45.36% 0.19 315.1)
XYZxyz(14.9130, 7.8880, 32.1830)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C239C #439C23
analogous
#3F239C #7C239C #9C2380
triadic
#7C239C #9C7C23 #239C7C
tetradic
#7C239C #9C3F23 #439C23 #23809C
square
#7C239C #9C3F23 #439C23 #23809C
split-complementary
#7C239C #809C23 #239C3F
monochromatic
#2D0D38 #54186A #7C239C #A42ECE #BA5EDB

Accessibility & contrast

On white

8.15
#7C239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7C239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C239C
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C239C#FFFFFF#000000##FFFFFF
##7C239C1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#1E5299
Tritanopia (blue-blind)
#793E5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c239c;
/* rgb */ color: rgb(124, 35, 156);
/* oklch */ color: oklch(45.4% 0.190 315.1);
Tailwind
colors: {
  custom: {
    50: '#a668ba',
    500: '#7c239c',
    950: '#000000',
  },
}
SCSS
$custom: #7c239c;
$custom-light: #a668ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7c239c",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 284.132,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45355,
    "c": 0.18981,
    "h": 315.1
  },
  "luminance": 0.07887
}

Semantic roles & 50–950 ramp

primary
#7C239C
secondary
#76C05B
accent
#E6416D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C239C

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

Preview Lab → · Contrast checker → · Palette generator →

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