#7B2495#7B2495

#7B2495 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.182 H 317.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#7B2495
RGBrgb(123, 36, 149)
HSLhsl(286, 61%, 36%)
HSVhsv(286, 76%, 58%)
CMYKcmyk(17.4%, 75.8%, 0%, 41.6%)
CIE-LABlab(33.23, 53.26, -44.03)
CIE-LCHlch(33.23, 69.11, 320.42°)
OKLaboklab(44.8% 0.1333 -0.1239)
OKLCHoklch(44.8% 0.182 317.1)
XYZxyz(14.2233, 7.6432, 29.1540)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2495 #3E9524
analogous
#432495 #7B2495 #952477
triadic
#7B2495 #957B24 #24957B
tetradic
#7B2495 #954324 #3E9524 #247795
square
#7B2495 #954324 #3E9524 #247795
split-complementary
#7B2495 #779524 #249543
monochromatic
#2A0C32 #521864 #7B2495 #A430C6 #BB5CD8

Accessibility & contrast

On white

8.30
#7B2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2495
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2495#FFFFFF#000000##FFFFFF
##7B24951.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#265193
Tritanopia (blue-blind)
#7A3C5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2495;
/* rgb */ color: rgb(123, 36, 149);
/* oklch */ color: oklch(44.8% 0.182 317.1);
Tailwind
colors: {
  custom: {
    50: '#a568b5',
    500: '#7b2495',
    950: '#000000',
  },
}
SCSS
$custom: #7b2495;
$custom-light: #a568b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2495",
  "rgb": {
    "r": 123,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 286.195,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.448,
    "c": 0.182,
    "h": 317.1
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#7B2495
secondary
#6FBC59
accent
#E44469
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2495

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

Preview Lab → · Contrast checker → · Palette generator →

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