#7B248B#7B248B

#7B248B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.173 H 320.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7B248B
RGBrgb(123, 36, 139)
HSLhsl(291, 59%, 34%)
HSVhsv(291, 74%, 55%)
CMYKcmyk(11.5%, 74.1%, 0%, 45.5%)
CIE-LABlab(32.56, 51.29, -38.95)
CIE-LCHlch(32.56, 64.40, 322.79°)
OKLaboklab(44.12% 0.1343 -0.109)
OKLCHoklch(44.12% 0.173 320.9)
XYZxyz(13.4589, 7.3375, 25.1284)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B248B #348B24
analogous
#48248B #7B248B #8B2468
triadic
#7B248B #8B7B24 #248B7B
tetradic
#7B248B #8B4824 #348B24 #24688B
square
#7B248B #8B4824 #348B24 #24688B
split-complementary
#7B248B #688B24 #248B48
monochromatic
#250B2A #50175A #7B248B #A631BC #C056D3

Accessibility & contrast

On white

8.51
#7B248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B248B
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B248B#FFFFFF#000000##FFFFFF
##7B248B1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#305089
Tritanopia (blue-blind)
#7C3855
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b248b;
/* rgb */ color: rgb(123, 36, 139);
/* oklch */ color: oklch(44.1% 0.173 320.9);
Tailwind
colors: {
  custom: {
    50: '#a568ad',
    500: '#7b248b',
    950: '#000000',
  },
}
SCSS
$custom: #7b248b;
$custom-light: #a568ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b248b",
  "rgb": {
    "r": 123,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 290.68,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44115,
    "c": 0.17298,
    "h": 320.9
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

primary
#7B248B
secondary
#63B753
accent
#E2465E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B248B

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

Preview Lab → · Contrast checker → · Palette generator →

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