#7C238D#7C238D

#7C238D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.176 H 320.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7C238D
RGBrgb(124, 35, 141)
HSLhsl(290, 60%, 35%)
HSVhsv(290, 75%, 55%)
CMYKcmyk(12.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(32.72, 52.27, -39.92)
CIE-LCHlch(32.72, 65.77, 322.63°)
OKLaboklab(44.3% 0.1364 -0.1118)
OKLCHoklch(44.3% 0.176 320.7)
XYZxyz(13.7204, 7.4110, 25.9019)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C238D #348D23
analogous
#47238D #7C238D #8D2369
triadic
#7C238D #8D7C23 #238D7C
tetradic
#7C238D #8D4723 #348D23 #23698D
square
#7C238D #8D4723 #348D23 #23698D
split-complementary
#7C238D #698D23 #238D47
monochromatic
#260B2B #51175C #7C238D #A72FBE #C055D5

Accessibility & contrast

On white

8.46
#7C238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7C238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C238D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C238D#FFFFFF#000000##FFFFFF
##7C238D1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#2E508B
Tritanopia (blue-blind)
#7D3856
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c238d;
/* rgb */ color: rgb(124, 35, 141);
/* oklch */ color: oklch(44.3% 0.176 320.7);
Tailwind
colors: {
  custom: {
    50: '#a568af',
    500: '#7c238d',
    950: '#000000',
  },
}
SCSS
$custom: #7c238d;
$custom-light: #a568af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c238d",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 290.377,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44304,
    "c": 0.17636,
    "h": 320.7
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#7C238D
secondary
#63B953
accent
#E3445E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C238D

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

Preview Lab → · Contrast checker → · Palette generator →

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