#7C238B#7C238B

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

Color values

HEX#7C238B
RGBrgb(124, 35, 139)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 55%)
CMYKcmyk(10.8%, 74.8%, 0%, 45.5%)
CIE-LABlab(32.60, 51.88, -38.89)
CIE-LCHlch(32.60, 64.84, 323.15°)
OKLaboklab(44.17% 0.1366 -0.1088)
OKLCHoklch(44.17% 0.175 321.5)
XYZxyz(13.5729, 7.3520, 25.1252)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C238B #328B23
analogous
#48238B #7C238B #8B2366
triadic
#7C238B #8B7C23 #238B7C
tetradic
#7C238B #8B4823 #328B23 #23668B
square
#7C238B #8B4823 #328B23 #23668B
split-complementary
#7C238B #668B23 #238B48
monochromatic
#250A29 #50175A #7C238B #A82FBC #C254D4

Accessibility & contrast

On white

8.50
#7C238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7C238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C238B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C238B#FFFFFF#000000##FFFFFF
##7C238B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#305089
Tritanopia (blue-blind)
#7D3755
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c238b;
/* rgb */ color: rgb(124, 35, 139);
/* oklch */ color: oklch(44.2% 0.175 321.5);
Tailwind
colors: {
  custom: {
    50: '#a568ad',
    500: '#7c238b',
    950: '#000000',
  },
}
SCSS
$custom: #7c238b;
$custom-light: #a568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c238b",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 291.346,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4417,
    "c": 0.17459,
    "h": 321.5
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#7C238B
secondary
#61B852
accent
#E3455C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C238B

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

Preview Lab → · Contrast checker → · Palette generator →

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