#7C238A#7C238A

#7C238A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.174 H 321.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7C238A
RGBrgb(124, 35, 138)
HSLhsl(292, 60%, 34%)
HSVhsv(292, 75%, 54%)
CMYKcmyk(10.1%, 74.6%, 0%, 45.9%)
CIE-LABlab(32.53, 51.69, -38.37)
CIE-LCHlch(32.53, 64.38, 323.41°)
OKLaboklab(44.1% 0.1366 -0.1073)
OKLCHoklch(44.1% 0.174 321.9)
XYZxyz(13.5002, 7.3229, 24.7422)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C238A #318A23
analogous
#49238A #7C238A #8A2365
triadic
#7C238A #8A7C23 #238A7C
tetradic
#7C238A #8A4923 #318A23 #23658A
square
#7C238A #8A4923 #318A23 #23658A
split-complementary
#7C238A #658A23 #238A49
monochromatic
#240A28 #501759 #7C238A #A82FBB #C254D4

Accessibility & contrast

On white

8.52
#7C238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7C238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C238A
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C238A#FFFFFF#000000##FFFFFF
##7C238A1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#7D3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c238a;
/* rgb */ color: rgb(124, 35, 138);
/* oklch */ color: oklch(44.1% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#a568ad',
    500: '#7c238a',
    950: '#000000',
  },
}
SCSS
$custom: #7c238a;
$custom-light: #a568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c238a",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 291.845,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44104,
    "c": 0.17371,
    "h": 321.9
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#7C238A
secondary
#5FB751
accent
#E3455B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C238A

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

Preview Lab → · Contrast checker → · Palette generator →

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