#7B268C#7B268C

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

Color values

HEX#7B268C
RGBrgb(123, 38, 140)
HSLhsl(290, 57%, 35%)
HSVhsv(290, 73%, 55%)
CMYKcmyk(12.1%, 72.9%, 0%, 45.1%)
CIE-LABlab(32.90, 50.71, -39.03)
CIE-LCHlch(32.90, 63.99, 322.42°)
OKLaboklab(44.38% 0.1322 -0.1092)
OKLCHoklch(44.38% 0.171 320.4)
XYZxyz(13.5945, 7.4913, 25.5358)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B268C #378C26
analogous
#48268C #7B268C #8C266A
triadic
#7B268C #8C7B26 #268C7B
tetradic
#7B268C #8C4826 #378C26 #266A8C
square
#7B268C #8C4826 #378C26 #266A8C
split-complementary
#7B268C #6A8C26 #268C48
monochromatic
#260C2C #51195C #7B268C #A533BC #BE5AD2

Accessibility & contrast

On white

8.41
#7B268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B268C
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B268C#FFFFFF#000000##FFFFFF
##7B268C1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#30508A
Tritanopia (blue-blind)
#7C3956
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b268c;
/* rgb */ color: rgb(123, 38, 140);
/* oklch */ color: oklch(44.4% 0.171 320.4);
Tailwind
colors: {
  custom: {
    50: '#a469ae',
    500: '#7b268c',
    950: '#000000',
  },
}
SCSS
$custom: #7b268c;
$custom-light: #a469ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7b268c",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 290,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44376,
    "c": 0.17149,
    "h": 320.4
  },
  "luminance": 0.07491
}

Semantic roles & 50–950 ramp

primary
#7B268C
secondary
#67B757
accent
#E14761
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B268C

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

Preview Lab → · Contrast checker → · Palette generator →

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