#7B268E#7B268E

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

Color values

HEX#7B268E
RGBrgb(123, 38, 142)
HSLhsl(289, 58%, 35%)
HSVhsv(289, 73%, 56%)
CMYKcmyk(13.4%, 73.2%, 0%, 44.3%)
CIE-LABlab(33.03, 51.10, -40.05)
CIE-LCHlch(33.03, 64.93, 321.91°)
OKLaboklab(44.51% 0.132 -0.1122)
OKLCHoklch(44.51% 0.173 319.6)
XYZxyz(13.7434, 7.5508, 26.3195)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B268E #398E26
analogous
#47268E #7B268E #8E266D
triadic
#7B268E #8E7B26 #268E7B
tetradic
#7B268E #8E4726 #398E26 #266D8E
square
#7B268E #8E4726 #398E26 #266D8E
split-complementary
#7B268E #6D8E26 #268E47
monochromatic
#270C2D #51195E #7B268E #A533BE #BD5BD3

Accessibility & contrast

On white

8.37
#7B268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B268E
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B268E#FFFFFF#000000##FFFFFF
##7B268E1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#2E518C
Tritanopia (blue-blind)
#7B3A58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b268e;
/* rgb */ color: rgb(123, 38, 142);
/* oklch */ color: oklch(44.5% 0.173 319.6);
Tailwind
colors: {
  custom: {
    50: '#a569b0',
    500: '#7b268e',
    950: '#000000',
  },
}
SCSS
$custom: #7b268e;
$custom-light: #a569b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b268e",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 289.038,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4451,
    "c": 0.17331,
    "h": 319.6
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

primary
#7B268E
secondary
#69B858
accent
#E14763
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B268E

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

Preview Lab → · Contrast checker → · Palette generator →

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