#7C239E#7C239E

#7C239E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.192 H 314.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7C239E
RGBrgb(124, 35, 158)
HSLhsl(283, 64%, 38%)
HSVhsv(283, 78%, 62%)
CMYKcmyk(21.5%, 77.8%, 0%, 38%)
CIE-LABlab(33.89, 55.65, -48.43)
CIE-LCHlch(33.89, 73.78, 318.97°)
OKLaboklab(45.5% 0.1342 -0.1368)
OKLCHoklch(45.5% 0.192 314.5)
XYZxyz(15.0837, 7.9563, 33.0823)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C239E #459E23
analogous
#3F239E #7C239E #9E2382
triadic
#7C239E #9E7C23 #239E7C
tetradic
#7C239E #9E3F23 #459E23 #23829E
square
#7C239E #9E3F23 #459E23 #23829E
split-complementary
#7C239E #829E23 #239E3F
monochromatic
#2D0D3A #55186C #7C239E #A32ED0 #B960DC

Accessibility & contrast

On white

8.10
#7C239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7C239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C239E
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C239E#FFFFFF#000000##FFFFFF
##7C239E1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#1A529B
Tritanopia (blue-blind)
#793F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c239e;
/* rgb */ color: rgb(124, 35, 158);
/* oklch */ color: oklch(45.5% 0.192 314.5);
Tailwind
colors: {
  custom: {
    50: '#a668bb',
    500: '#7c239e',
    950: '#000000',
  },
}
SCSS
$custom: #7c239e;
$custom-light: #a668bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c239e",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 283.415,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45502,
    "c": 0.19163,
    "h": 314.5
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#7C239E
secondary
#78C15C
accent
#E7416F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C239E

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

Preview Lab → · Contrast checker → · Palette generator →

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