#7C268D#7C268D

#7C268D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.173 H 320.5°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7C268D
RGBrgb(124, 38, 141)
HSLhsl(290, 58%, 35%)
HSVhsv(290, 73%, 55%)
CMYKcmyk(12.1%, 73%, 0%, 44.7%)
CIE-LABlab(33.13, 51.13, -39.27)
CIE-LCHlch(33.13, 64.47, 322.47°)
OKLaboklab(44.59% 0.1334 -0.1099)
OKLCHoklch(44.59% 0.173 320.5)
XYZxyz(13.8124, 7.5951, 25.9326)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C268D #378D26
analogous
#48268D #7C268D #8D266B
triadic
#7C268D #8D7C26 #268D7C
tetradic
#7C268D #8D4826 #378D26 #266B8D
square
#7C268D #8D4826 #378D26 #266B8D
split-complementary
#7C268D #6B8D26 #268D48
monochromatic
#270C2D #52195D #7C268D #A633BD #BF5BD3

Accessibility & contrast

On white

8.34
#7C268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7C268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C268D
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C268D#FFFFFF#000000##FFFFFF
##7C268D1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#7D3957
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c268d;
/* rgb */ color: rgb(124, 38, 141);
/* oklch */ color: oklch(44.6% 0.173 320.5);
Tailwind
colors: {
  custom: {
    50: '#a569af',
    500: '#7c268d',
    950: '#000000',
  },
}
SCSS
$custom: #7c268d;
$custom-light: #a569af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c268d",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 290.097,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44589,
    "c": 0.17283,
    "h": 320.5
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

primary
#7C268D
secondary
#67B857
accent
#E14760
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C268D

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

Preview Lab → · Contrast checker → · Palette generator →

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