#7D238F#7D238F

#7D238F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.179 H 320.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7D238F
RGBrgb(125, 35, 143)
HSLhsl(290, 61%, 35%)
HSVhsv(290, 76%, 56%)
CMYKcmyk(12.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(33.02, 52.87, -40.67)
CIE-LCHlch(33.02, 66.70, 322.43°)
OKLaboklab(44.59% 0.1375 -0.114)
OKLCHoklch(44.59% 0.179 320.3)
XYZxyz(14.0158, 7.5459, 26.6995)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D238F #358F23
analogous
#47238F #7D238F #8F236B
triadic
#7D238F #8F7D23 #238F7D
tetradic
#7D238F #8F4723 #358F23 #236B8F
square
#7D238F #8F4723 #358F23 #236B8F
split-complementary
#7D238F #6B8F23 #238F47
monochromatic
#270B2D #52175E #7D238F #A82FC0 #C157D6

Accessibility & contrast

On white

8.37
#7D238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7D238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D238F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D238F#FFFFFF#000000##FFFFFF
##7D238F1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#2E518D
Tritanopia (blue-blind)
#7E3857
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d238f;
/* rgb */ color: rgb(125, 35, 143);
/* oklch */ color: oklch(44.6% 0.179 320.3);
Tailwind
colors: {
  custom: {
    50: '#a668b0',
    500: '#7d238f',
    950: '#000000',
  },
}
SCSS
$custom: #7d238f;
$custom-light: #a668b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d238f",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 290,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44587,
    "c": 0.17855,
    "h": 320.3
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#7D238F
secondary
#65BA54
accent
#E4445F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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