#7B258E#7B258E

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

Color values

HEX#7B258E
RGBrgb(123, 37, 142)
HSLhsl(289, 59%, 35%)
HSVhsv(289, 74%, 56%)
CMYKcmyk(13.4%, 73.9%, 0%, 44.3%)
CIE-LABlab(32.89, 51.49, -40.27)
CIE-LCHlch(32.89, 65.37, 321.97°)
OKLaboklab(44.41% 0.1331 -0.1129)
OKLCHoklch(44.41% 0.175 319.7)
XYZxyz(13.7118, 7.4878, 26.3090)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B258E #388E25
analogous
#47258E #7B258E #8E256C
triadic
#7B258E #8E7B25 #258E7B
tetradic
#7B258E #8E4725 #388E25 #256C8E
square
#7B258E #8E4725 #388E25 #256C8E
split-complementary
#7B258E #6C8E25 #258E47
monochromatic
#270C2D #51185D #7B258E #A532BF #BE5AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B258E#FFFFFF#000000##FFFFFF
##7B258E1.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)
#004891
Deuteranopia (green-blind)
#2E508C
Tritanopia (blue-blind)
#7B3A57
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b258e;
/* rgb */ color: rgb(123, 37, 142);
/* oklch */ color: oklch(44.4% 0.174 319.7);
Tailwind
colors: {
  custom: {
    50: '#a568b0',
    500: '#7b258e',
    950: '#000000',
  },
}
SCSS
$custom: #7b258e;
$custom-light: #a568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b258e",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 289.143,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44412,
    "c": 0.1745,
    "h": 319.7
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#7B258E
secondary
#68B956
accent
#E24662
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B258E

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

Preview Lab → · Contrast checker → · Palette generator →

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