#7C239D#7C239D

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

Color values

HEX#7C239D
RGBrgb(124, 35, 157)
HSLhsl(284, 64%, 38%)
HSVhsv(284, 78%, 62%)
CMYKcmyk(21%, 77.7%, 0%, 38.4%)
CIE-LABlab(33.82, 55.45, -47.94)
CIE-LCHlch(33.82, 73.30, 319.15°)
OKLaboklab(45.43% 0.1344 -0.1353)
OKLCHoklch(45.43% 0.191 314.8)
XYZxyz(14.9980, 7.9220, 32.6308)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C239D #449D23
analogous
#3F239D #7C239D #9D2381
triadic
#7C239D #9D7C23 #239D7C
tetradic
#7C239D #9D3F23 #449D23 #23819D
square
#7C239D #9D3F23 #449D23 #23819D
split-complementary
#7C239D #819D23 #239D3F
monochromatic
#2D0D39 #54186B #7C239D #A42ECF #BA5FDB

Accessibility & contrast

On white

8.13
#7C239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C239D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C239D#FFFFFF#000000##FFFFFF
##7C239D1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#1C529A
Tritanopia (blue-blind)
#793F5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c239d;
/* rgb */ color: rgb(124, 35, 157);
/* oklch */ color: oklch(45.4% 0.191 314.8);
Tailwind
colors: {
  custom: {
    50: '#a668bb',
    500: '#7c239d',
    950: '#000000',
  },
}
SCSS
$custom: #7c239d;
$custom-light: #a668bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c239d",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 283.77,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45428,
    "c": 0.19072,
    "h": 314.8
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#7C239D
secondary
#77C05C
accent
#E7416E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C239D

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

Preview Lab → · Contrast checker → · Palette generator →

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