#7A267B#7A267B

#7A267B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.156 H 327.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7A267B
RGBrgb(122, 38, 123)
HSLhsl(299, 53%, 32%)
HSVhsv(299, 69%, 48%)
CMYKcmyk(0.8%, 69.1%, 0%, 51.8%)
CIE-LABlab(31.70, 47.25, -30.35)
CIE-LCHlch(31.70, 56.16, 327.28°)
OKLaboklab(43.15% 0.1312 -0.084)
OKLCHoklch(43.15% 0.156 327.4)
XYZxyz(12.2941, 6.9547, 19.4299)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A267B #277B26
analogous
#50267B #7A267B #7B2652
triadic
#7A267B #7B7A26 #267B7A
tetradic
#7A267B #7B5026 #277B26 #26527B
square
#7A267B #7B5026 #277B26 #26527B
split-complementary
#7A267B #527B26 #267B50
monochromatic
#1D091D #4C184C #7A267B #A834AA #C852CA

Accessibility & contrast

On white

8.78
#7A267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7A267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A267B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A267B#FFFFFF#000000##FFFFFF
##7A267B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447D
Deuteranopia (green-blind)
#3A4E79
Tritanopia (blue-blind)
#7E324D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a267b;
/* rgb */ color: rgb(122, 38, 123);
/* oklch */ color: oklch(43.2% 0.156 327.4);
Tailwind
colors: {
  custom: {
    50: '#a368a1',
    500: '#7a267b',
    950: '#000000',
  },
}
SCSS
$custom: #7a267b;
$custom-light: #a368a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a267b",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 299.294,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.15582,
    "h": 327.4
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#7A267B
secondary
#51AD50
accent
#DC4C4D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A267B

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

Preview Lab → · Contrast checker → · Palette generator →

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