#7F268B#7F268B

#7F268B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.172 H 322.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7F268B
RGBrgb(127, 38, 139)
HSLhsl(293, 57%, 35%)
HSVhsv(293, 73%, 55%)
CMYKcmyk(8.6%, 72.7%, 0%, 45.5%)
CIE-LABlab(33.48, 51.42, -37.44)
CIE-LCHlch(33.48, 63.61, 323.94°)
OKLaboklab(44.9% 0.1371 -0.1045)
OKLCHoklch(44.9% 0.172 322.7)
XYZxyz(14.1052, 7.7631, 25.1766)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F268B #328B26
analogous
#4C268B #7F268B #8B2665
triadic
#7F268B #8B7F26 #268B7F
tetradic
#7F268B #8B4C26 #328B26 #26658B
square
#7F268B #8B4C26 #328B26 #26658B
split-complementary
#7F268B #658B26 #268B4C
monochromatic
#270C2B #53195B #7F268B #AB33BB #C45AD2

Accessibility & contrast

On white

8.23
#7F268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7F268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F268B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F268B#FFFFFF#000000##FFFFFF
##7F268B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#813856
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f268b;
/* rgb */ color: rgb(127, 38, 139);
/* oklch */ color: oklch(44.9% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#a769ad',
    500: '#7f268b',
    950: '#000000',
  },
}
SCSS
$custom: #7f268b;
$custom-light: #a769ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f268b",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 292.871,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44902,
    "c": 0.1724,
    "h": 322.7
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#7F268B
secondary
#62B756
accent
#E0475A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F268B

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

Preview Lab → · Contrast checker → · Palette generator →

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