#7D238B#7D238B

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

Color values

HEX#7D238B
RGBrgb(125, 35, 139)
HSLhsl(292, 60%, 34%)
HSVhsv(292, 75%, 55%)
CMYKcmyk(10.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(32.76, 52.10, -38.62)
CIE-LCHlch(32.76, 64.85, 323.46°)
OKLaboklab(44.32% 0.1378 -0.108)
OKLCHoklch(44.32% 0.175 321.9)
XYZxyz(13.7182, 7.4269, 25.1321)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D238B #318B23
analogous
#49238B #7D238B #8B2365
triadic
#7D238B #8B7D23 #238B7D
tetradic
#7D238B #8B4923 #318B23 #23658B
square
#7D238B #8B4923 #318B23 #23658B
split-complementary
#7D238B #658B23 #238B49
monochromatic
#250A29 #51175A #7D238B #A92FBC #C354D4

Accessibility & contrast

On white

8.45
#7D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D238B
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D238B#FFFFFF#000000##FFFFFF
##7D238B1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#7E3755
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d238b;
/* rgb */ color: rgb(125, 35, 139);
/* oklch */ color: oklch(44.3% 0.175 321.9);
Tailwind
colors: {
  custom: {
    50: '#a668ad',
    500: '#7d238b',
    950: '#000000',
  },
}
SCSS
$custom: #7d238b;
$custom-light: #a668ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d238b",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 291.923,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4432,
    "c": 0.17504,
    "h": 321.9
  },
  "luminance": 0.07426
}

Semantic roles & 50–950 ramp

primary
#7D238B
secondary
#60B852
accent
#E3455A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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