#7D268C#7D268C

#7D268C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.172 H 321.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7D268C
RGBrgb(125, 38, 140)
HSLhsl(291, 57%, 35%)
HSVhsv(291, 73%, 55%)
CMYKcmyk(10.7%, 72.9%, 0%, 45.1%)
CIE-LABlab(33.22, 51.16, -38.49)
CIE-LCHlch(33.22, 64.02, 323.04°)
OKLaboklab(44.67% 0.1347 -0.1076)
OKLCHoklch(44.67% 0.172 321.4)
XYZxyz(13.8837, 7.6404, 25.5493)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D268C #358C26
analogous
#4A268C #7D268C #8C2668
triadic
#7D268C #8C7D26 #268C7D
tetradic
#7D268C #8C4A26 #358C26 #26688C
square
#7D268C #8C4A26 #358C26 #26688C
split-complementary
#7D268C #688C26 #268C4A
monochromatic
#270C2C #52195C #7D268C #A833BC #C15AD2

Accessibility & contrast

On white

8.31
#7D268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D268C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D268C#FFFFFF#000000##FFFFFF
##7D268C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#32518A
Tritanopia (blue-blind)
#7E3956
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d268c;
/* rgb */ color: rgb(125, 38, 140);
/* oklch */ color: oklch(44.7% 0.172 321.4);
Tailwind
colors: {
  custom: {
    50: '#a669ae',
    500: '#7d268c',
    950: '#000000',
  },
}
SCSS
$custom: #7d268c;
$custom-light: #a669ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d268c",
  "rgb": {
    "r": 125,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 291.176,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44671,
    "c": 0.17238,
    "h": 321.4
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#7D268C
secondary
#65B757
accent
#E1475E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D268C

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

Preview Lab → · Contrast checker → · Palette generator →

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