#7C268B#7C268B

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

Color values

HEX#7C268B
RGBrgb(124, 38, 139)
HSLhsl(291, 57%, 35%)
HSVhsv(291, 73%, 55%)
CMYKcmyk(10.8%, 72.7%, 0%, 45.5%)
CIE-LABlab(33.00, 50.74, -38.24)
CIE-LCHlch(33.00, 63.54, 322.99°)
OKLaboklab(44.46% 0.1335 -0.1069)
OKLCHoklch(44.46% 0.171 321.3)
XYZxyz(13.6650, 7.5361, 25.1559)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C268B #358B26
analogous
#4A268B #7C268B #8B2668
triadic
#7C268B #8B7C26 #268B7C
tetradic
#7C268B #8B4A26 #358B26 #26688B
square
#7C268B #8B4A26 #358B26 #26688B
split-complementary
#7C268B #688B26 #268B4A
monochromatic
#260C2B #51195B #7C268B #A733BB #C05AD2

Accessibility & contrast

On white

8.38
#7C268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C268B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C268B#FFFFFF#000000##FFFFFF
##7C268B1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#7D3956
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c268b;
/* rgb */ color: rgb(124, 38, 139);
/* oklch */ color: oklch(44.5% 0.171 321.3);
Tailwind
colors: {
  custom: {
    50: '#a569ad',
    500: '#7c268b',
    950: '#000000',
  },
}
SCSS
$custom: #7c268b;
$custom-light: #a569ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c268b",
  "rgb": {
    "r": 124,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 291.089,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44457,
    "c": 0.17102,
    "h": 321.3
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

primary
#7C268B
secondary
#65B756
accent
#E0475E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C268B

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

Preview Lab → · Contrast checker → · Palette generator →

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