#7B258C#7B258C

#7B258C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.173 H 320.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7B258C
RGBrgb(123, 37, 140)
HSLhsl(290, 58%, 35%)
HSVhsv(290, 74%, 55%)
CMYKcmyk(12.1%, 73.6%, 0%, 45.1%)
CIE-LABlab(32.76, 51.10, -39.25)
CIE-LCHlch(32.76, 64.43, 322.47°)
OKLaboklab(44.28% 0.1332 -0.1099)
OKLCHoklch(44.28% 0.173 320.5)
XYZxyz(13.5630, 7.4282, 25.5252)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B258C #368C25
analogous
#48258C #7B258C #8C256A
triadic
#7B258C #8C7B25 #258C7B
tetradic
#7B258C #8C4825 #368C25 #256A8C
square
#7B258C #8C4825 #368C25 #256A8C
split-complementary
#7B258C #6A8C25 #258C48
monochromatic
#260B2B #50185C #7B258C #A632BC #BF58D3

Accessibility & contrast

On white

8.45
#7B258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7B258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B258C
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B258C#FFFFFF#000000##FFFFFF
##7B258C1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#2F508A
Tritanopia (blue-blind)
#7C3956
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b258c;
/* rgb */ color: rgb(123, 37, 140);
/* oklch */ color: oklch(44.3% 0.173 320.5);
Tailwind
colors: {
  custom: {
    50: '#a568ae',
    500: '#7b258c',
    950: '#000000',
  },
}
SCSS
$custom: #7b258c;
$custom-light: #a568ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7b258c",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 290.097,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44278,
    "c": 0.17269,
    "h": 320.5
  },
  "luminance": 0.07428
}

Semantic roles & 50–950 ramp

primary
#7B258C
secondary
#65B855
accent
#E14660
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B258C

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

Preview Lab → · Contrast checker → · Palette generator →

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