#7B248E#7B248E

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

Color values

HEX#7B248E
RGBrgb(123, 36, 142)
HSLhsl(289, 60%, 35%)
HSVhsv(289, 75%, 56%)
CMYKcmyk(13.4%, 74.6%, 0%, 44.3%)
CIE-LABlab(32.76, 51.87, -40.49)
CIE-LCHlch(32.76, 65.80, 322.03°)
OKLaboklab(44.32% 0.1341 -0.1135)
OKLCHoklch(44.32% 0.176 319.7)
XYZxyz(13.6811, 7.4264, 26.2987)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B248E #378E24
analogous
#46248E #7B248E #8E246C
triadic
#7B248E #8E7B24 #248E7B
tetradic
#7B248E #8E4624 #378E24 #246C8E
square
#7B248E #8E4624 #378E24 #246C8E
split-complementary
#7B248E #6C8E24 #248E46
monochromatic
#260B2C #51185D #7B248E #A530BF #BE58D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B248E#FFFFFF#000000##FFFFFF
##7B248E1.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)
#004791
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#7B3957
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b248e;
/* rgb */ color: rgb(123, 36, 142);
/* oklch */ color: oklch(44.3% 0.176 319.7);
Tailwind
colors: {
  custom: {
    50: '#a568b0',
    500: '#7b248e',
    950: '#000000',
  },
}
SCSS
$custom: #7b248e;
$custom-light: #a568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b248e",
  "rgb": {
    "r": 123,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 289.245,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44317,
    "c": 0.17567,
    "h": 319.7
  },
  "luminance": 0.07426
}

Semantic roles & 50–950 ramp

primary
#7B248E
secondary
#67B955
accent
#E34561
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B248E

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

Preview Lab → · Contrast checker → · Palette generator →

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