#7E235F#7E235F

#7E235F is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.0% C 0.141 H 344.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7E235F
RGBrgb(126, 35, 95)
HSLhsl(320, 57%, 32%)
HSVhsv(320, 72%, 49%)
CMYKcmyk(0%, 72.2%, 24.6%, 50.6%)
CIE-LABlab(30.56, 44.97, -14.21)
CIE-LCHlch(30.56, 47.16, 342.47°)
OKLaboklab(42% 0.1357 -0.0378)
OKLCHoklch(42% 0.141 344.4)
XYZxyz(11.2712, 6.4651, 11.4785)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E235F #237E42
analogous
#70237E #7E235F #7E2331
triadic
#7E235F #5F7E23 #235F7E
tetradic
#7E235F #7E7023 #237E42 #23317E
square
#7E235F #7E7023 #237E42 #23317E
split-complementary
#7E235F #317E23 #237E70
monochromatic
#1E0817 #4E163B #7E235F #AE3083 #CE4EA2

Accessibility & contrast

On white

9.16
#7E235F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E235F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E235F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E235F#FFFFFF#000000##FFFFFF
##7E235F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3E61
Deuteranopia (green-blind)
#484D5D
Tritanopia (blue-blind)
#86223D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e235f;
/* rgb */ color: rgb(126, 35, 95);
/* oklch */ color: oklch(42.0% 0.141 344.4);
Tailwind
colors: {
  custom: {
    50: '#a7668c',
    500: '#7e235f',
    950: '#000000',
  },
}
SCSS
$custom: #7e235f;
$custom-light: #a7668c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e235f",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 95
  },
  "hsl": {
    "h": 320.44,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41995,
    "c": 0.14085,
    "h": 344.4
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#7E235F
secondary
#4CB06E
accent
#E07C48
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E235F

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

Preview Lab → · Contrast checker → · Palette generator →

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