#7A268E#7A268E

#7A268E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.173 H 319.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7A268E
RGBrgb(122, 38, 142)
HSLhsl(288, 58%, 35%)
HSVhsv(288, 73%, 56%)
CMYKcmyk(14.1%, 73.2%, 0%, 44.3%)
CIE-LABlab(32.87, 50.88, -40.32)
CIE-LCHlch(32.87, 64.92, 321.61°)
OKLaboklab(44.36% 0.1308 -0.1131)
OKLCHoklch(44.36% 0.173 319.2)
XYZxyz(13.6010, 7.4774, 26.3128)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A268E #3A8E26
analogous
#46268E #7A268E #8E266E
triadic
#7A268E #8E7A26 #268E7A
tetradic
#7A268E #8E4626 #3A8E26 #266E8E
square
#7A268E #8E4626 #3A8E26 #266E8E
split-complementary
#7A268E #6E8E26 #268E46
monochromatic
#270C2D #51195E #7A268E #A333BE #BC5BD3

Accessibility & contrast

On white

8.42
#7A268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A268E
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A268E#FFFFFF#000000##FFFFFF
##7A268E1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#7A3A58
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a268e;
/* rgb */ color: rgb(122, 38, 142);
/* oklch */ color: oklch(44.4% 0.173 319.2);
Tailwind
colors: {
  custom: {
    50: '#a469b0',
    500: '#7a268e',
    950: '#000000',
  },
}
SCSS
$custom: #7a268e;
$custom-light: #a469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a268e",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 288.462,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44364,
    "c": 0.17288,
    "h": 319.2
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#7A268E
secondary
#6AB858
accent
#E14764
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A268E

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

Preview Lab → · Contrast checker → · Palette generator →

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