#7D238C#7D238C

#7D238C is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.176 H 321.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7D238C
RGBrgb(125, 35, 140)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 55%)
CMYKcmyk(10.7%, 75%, 0%, 45.1%)
CIE-LABlab(32.82, 52.29, -39.13)
CIE-LCHlch(32.82, 65.31, 323.19°)
OKLaboklab(44.39% 0.1377 -0.1095)
OKLCHoklch(44.39% 0.176 321.5)
XYZxyz(13.7916, 7.4562, 25.5186)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D238C #328C23
analogous
#49238C #7D238C #8C2367
triadic
#7D238C #8C7D23 #238C7D
tetradic
#7D238C #8C4923 #328C23 #23678C
square
#7D238C #8C4923 #328C23 #23678C
split-complementary
#7D238C #678C23 #238C49
monochromatic
#260B2A #51175B #7D238C #A92FBD #C255D4

Accessibility & contrast

On white

8.43
#7D238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7D238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D238C
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D238C#FFFFFF#000000##FFFFFF
##7D238C1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#30508A
Tritanopia (blue-blind)
#7E3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d238c;
/* rgb */ color: rgb(125, 35, 140);
/* oklch */ color: oklch(44.4% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a668ae',
    500: '#7d238c',
    950: '#000000',
  },
}
SCSS
$custom: #7d238c;
$custom-light: #a668ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d238c",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 291.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44386,
    "c": 0.17591,
    "h": 321.5
  },
  "luminance": 0.07455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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