#7C239B#7C239B

#7C239B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.189 H 315.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7C239B
RGBrgb(124, 35, 155)
HSLhsl(285, 63%, 37%)
HSVhsv(285, 77%, 61%)
CMYKcmyk(20%, 77.4%, 0%, 39.2%)
CIE-LABlab(33.68, 55.04, -46.96)
CIE-LCHlch(33.68, 72.35, 319.53°)
OKLaboklab(45.28% 0.1347 -0.1325)
OKLCHoklch(45.28% 0.189 315.5)
XYZxyz(14.8287, 7.8543, 31.7389)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C239B #429B23
analogous
#40239B #7C239B #9B237E
triadic
#7C239B #9B7C23 #239B7C
tetradic
#7C239B #9B4023 #429B23 #237E9B
square
#7C239B #9B4023 #429B23 #237E9B
split-complementary
#7C239B #7E9B23 #239B40
monochromatic
#2C0C37 #541869 #7C239B #A42ECD #BA5EDB

Accessibility & contrast

On white

8.17
#7C239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7C239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C239B
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C239B#FFFFFF#000000##FFFFFF
##7C239B1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#1F5198
Tritanopia (blue-blind)
#7A3E5E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c239b;
/* rgb */ color: rgb(124, 35, 155);
/* oklch */ color: oklch(45.3% 0.189 315.5);
Tailwind
colors: {
  custom: {
    50: '#a668b9',
    500: '#7c239b',
    950: '#000000',
  },
}
SCSS
$custom: #7c239b;
$custom-light: #a668b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c239b",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 284.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45283,
    "c": 0.18891,
    "h": 315.5
  },
  "luminance": 0.07854
}

Semantic roles & 50–950 ramp

primary
#7C239B
secondary
#75BF5A
accent
#E6426C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C239B

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

Preview Lab → · Contrast checker → · Palette generator →

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