#7C238C#7C238C

#7C238C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.175 H 321.1°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7C238C
RGBrgb(124, 35, 140)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 55%)
CMYKcmyk(11.4%, 75%, 0%, 45.1%)
CIE-LABlab(32.66, 52.08, -39.40)
CIE-LCHlch(32.66, 65.30, 322.89°)
OKLaboklab(44.24% 0.1365 -0.1103)
OKLCHoklch(44.24% 0.175 321.1)
XYZxyz(13.6463, 7.3813, 25.5118)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C238C #338C23
analogous
#48238C #7C238C #8C2368
triadic
#7C238C #8C7C23 #238C7C
tetradic
#7C238C #8C4823 #338C23 #23688C
square
#7C238C #8C4823 #338C23 #23688C
split-complementary
#7C238C #688C23 #238C48
monochromatic
#250B2A #51175B #7C238C #A72FBD #C155D4

Accessibility & contrast

On white

8.48
#7C238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C238C
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C238C#FFFFFF#000000##FFFFFF
##7C238C1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#2F508A
Tritanopia (blue-blind)
#7D3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c238c;
/* rgb */ color: rgb(124, 35, 140);
/* oklch */ color: oklch(44.2% 0.175 321.1);
Tailwind
colors: {
  custom: {
    50: '#a568ae',
    500: '#7c238c',
    950: '#000000',
  },
}
SCSS
$custom: #7c238c;
$custom-light: #a568ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7c238c",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 290.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44237,
    "c": 0.17547,
    "h": 321.1
  },
  "luminance": 0.07381
}

Semantic roles & 50–950 ramp

primary
#7C238C
secondary
#62B852
accent
#E3455D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C238C

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

Preview Lab → · Contrast checker → · Palette generator →

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