#7D238A#7D238A

#7D238A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.174 H 322.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7D238A
RGBrgb(125, 35, 138)
HSLhsl(292, 60%, 34%)
HSVhsv(292, 75%, 54%)
CMYKcmyk(9.4%, 74.6%, 0%, 45.9%)
CIE-LABlab(32.70, 51.91, -38.10)
CIE-LCHlch(32.70, 64.39, 323.73°)
OKLaboklab(44.25% 0.1378 -0.1065)
OKLCHoklch(44.25% 0.174 322.3)
XYZxyz(13.6455, 7.3978, 24.7490)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D238A #308A23
analogous
#4A238A #7D238A #8A2364
triadic
#7D238A #8A7D23 #238A7D
tetradic
#7D238A #8A4A23 #308A23 #23648A
square
#7D238A #8A4A23 #308A23 #23648A
split-complementary
#7D238A #648A23 #238A4A
monochromatic
#250A28 #511759 #7D238A #A92FBB #C354D4

Accessibility & contrast

On white

8.47
#7D238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D238A
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D238A#FFFFFF#000000##FFFFFF
##7D238A1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#7F3655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d238a;
/* rgb */ color: rgb(125, 35, 138);
/* oklch */ color: oklch(44.3% 0.174 322.3);
Tailwind
colors: {
  custom: {
    50: '#a668ad',
    500: '#7d238a',
    950: '#000000',
  },
}
SCSS
$custom: #7d238a;
$custom-light: #a668ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d238a",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 292.427,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44254,
    "c": 0.17416,
    "h": 322.3
  },
  "luminance": 0.07397
}

Semantic roles & 50–950 ramp

primary
#7D238A
secondary
#5EB751
accent
#E34559
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D238A

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

Preview Lab → · Contrast checker → · Palette generator →

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