#7D238D#7D238D

#7D238D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.177 H 321.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7D238D
RGBrgb(125, 35, 141)
HSLhsl(291, 60%, 35%)
HSVhsv(291, 75%, 55%)
CMYKcmyk(11.3%, 75.2%, 0%, 44.7%)
CIE-LABlab(32.89, 52.48, -39.64)
CIE-LCHlch(32.89, 65.77, 322.93°)
OKLaboklab(44.45% 0.1376 -0.111)
OKLCHoklch(44.45% 0.177 321.1)
XYZxyz(13.8656, 7.4859, 25.9087)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D238D #338D23
analogous
#48238D #7D238D #8D2368
triadic
#7D238D #8D7D23 #238D7D
tetradic
#7D238D #8D4823 #338D23 #23688D
square
#7D238D #8D4823 #338D23 #23688D
split-complementary
#7D238D #688D23 #238D48
monochromatic
#260B2B #52175C #7D238D #A82FBE #C255D5

Accessibility & contrast

On white

8.41
#7D238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7D238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D238D
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D238D#FFFFFF#000000##FFFFFF
##7D238D1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#7E3856
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d238d;
/* rgb */ color: rgb(125, 35, 141);
/* oklch */ color: oklch(44.5% 0.177 321.1);
Tailwind
colors: {
  custom: {
    50: '#a668af',
    500: '#7d238d',
    950: '#000000',
  },
}
SCSS
$custom: #7d238d;
$custom-light: #a668af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d238d",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 290.943,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44453,
    "c": 0.17679,
    "h": 321.1
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#7D238D
secondary
#62B953
accent
#E3445C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D238D

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

Preview Lab → · Contrast checker → · Palette generator →

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