#7B268D#7B268D

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

Color values

HEX#7B268D
RGBrgb(123, 38, 141)
HSLhsl(290, 58%, 35%)
HSVhsv(290, 73%, 55%)
CMYKcmyk(12.8%, 73%, 0%, 44.7%)
CIE-LABlab(32.96, 50.90, -39.54)
CIE-LCHlch(32.96, 64.46, 322.16°)
OKLaboklab(44.44% 0.1321 -0.1108)
OKLCHoklch(44.44% 0.172 320)
XYZxyz(13.6686, 7.5210, 25.9258)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B268D #388D26
analogous
#48268D #7B268D #8D266B
triadic
#7B268D #8D7B26 #268D7B
tetradic
#7B268D #8D4826 #388D26 #266B8D
square
#7B268D #8D4826 #388D26 #266B8D
split-complementary
#7B268D #6B8D26 #268D48
monochromatic
#270C2D #51195D #7B268D #A533BD #BE5BD3

Accessibility & contrast

On white

8.39
#7B268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B268D
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B268D#FFFFFF#000000##FFFFFF
##7B268D1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#2F508B
Tritanopia (blue-blind)
#7B3A57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b268d;
/* rgb */ color: rgb(123, 38, 141);
/* oklch */ color: oklch(44.4% 0.172 320.0);
Tailwind
colors: {
  custom: {
    50: '#a569af',
    500: '#7b268d',
    950: '#000000',
  },
}
SCSS
$custom: #7b268d;
$custom-light: #a569af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b268d",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 289.515,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44443,
    "c": 0.1724,
    "h": 320
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#7B268D
secondary
#68B857
accent
#E14762
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B268D

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

Preview Lab → · Contrast checker → · Palette generator →

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