#7D238E#7D238E

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

Color values

HEX#7D238E
RGBrgb(125, 35, 142)
HSLhsl(290, 60%, 35%)
HSVhsv(290, 75%, 56%)
CMYKcmyk(12%, 75.4%, 0%, 44.3%)
CIE-LABlab(32.95, 52.68, -40.16)
CIE-LCHlch(32.95, 66.24, 322.68°)
OKLaboklab(44.52% 0.1375 -0.1125)
OKLCHoklch(44.52% 0.178 320.7)
XYZxyz(13.9404, 7.5158, 26.3023)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D238E #348E23
analogous
#47238E #7D238E #8E236A
triadic
#7D238E #8E7D23 #238E7D
tetradic
#7D238E #8E4723 #348E23 #236A8E
square
#7D238E #8E4723 #348E23 #236A8E
split-complementary
#7D238E #6A8E23 #238E47
monochromatic
#270B2C #52175D #7D238E #A82FBF #C156D5

Accessibility & contrast

On white

8.39
#7D238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D238E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D238E#FFFFFF#000000##FFFFFF
##7D238E1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#7E3857
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d238e;
/* rgb */ color: rgb(125, 35, 142);
/* oklch */ color: oklch(44.5% 0.178 320.7);
Tailwind
colors: {
  custom: {
    50: '#a668b0',
    500: '#7d238e',
    950: '#000000',
  },
}
SCSS
$custom: #7d238e;
$custom-light: #a668b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d238e",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 290.467,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4452,
    "c": 0.17767,
    "h": 320.7
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#7D238E
secondary
#64B953
accent
#E4445E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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