#7A268B#7A268B

#7A268B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.170 H 320.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7A268B
RGBrgb(122, 38, 139)
HSLhsl(290, 57%, 35%)
HSVhsv(290, 73%, 55%)
CMYKcmyk(12.2%, 72.7%, 0%, 45.5%)
CIE-LABlab(32.68, 50.28, -38.78)
CIE-LCHlch(32.68, 63.50, 322.36°)
OKLaboklab(44.16% 0.131 -0.1085)
OKLCHoklch(44.16% 0.17 320.4)
XYZxyz(13.3788, 7.3886, 25.1425)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A268B #378B26
analogous
#48268B #7A268B #8B266A
triadic
#7A268B #8B7A26 #268B7A
tetradic
#7A268B #8B4826 #378B26 #266A8B
square
#7A268B #8B4826 #378B26 #266A8B
split-complementary
#7A268B #6A8B26 #268B48
monochromatic
#260C2B #50195B #7A268B #A433BB #BE5AD2

Accessibility & contrast

On white

8.48
#7A268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A268B
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A268B#FFFFFF#000000##FFFFFF
##7A268B1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#305089
Tritanopia (blue-blind)
#7B3956
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a268b;
/* rgb */ color: rgb(122, 38, 139);
/* oklch */ color: oklch(44.2% 0.170 320.4);
Tailwind
colors: {
  custom: {
    50: '#a469ad',
    500: '#7a268b',
    950: '#000000',
  },
}
SCSS
$custom: #7a268b;
$custom-light: #a469ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a268b",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 289.901,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44163,
    "c": 0.17012,
    "h": 320.4
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#7A268B
secondary
#66B756
accent
#E04761
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A268B

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

Preview Lab → · Contrast checker → · Palette generator →

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