#7C45CB#7C45CB

#7C45CB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.197 H 298.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7C45CB
RGBrgb(124, 69, 203)
HSLhsl(265, 56%, 53%)
HSVhsv(265, 66%, 80%)
CMYKcmyk(38.9%, 66%, 0%, 20.4%)
CIE-LABlab(42.54, 50.98, -61.06)
CIE-LCHlch(42.54, 79.54, 309.86°)
OKLaboklab(52.69% 0.0931 -0.1741)
OKLCHoklch(52.69% 0.197 298.1)
XYZxyz(21.2171, 12.8528, 57.8513)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C45CB #94CB45
analogous
#4551CB #7C45CB #BF45CB
triadic
#7C45CB #CB7C45 #45CB7C
tetradic
#7C45CB #CB4551 #94CB45 #45CBBF
square
#7C45CB #CB4551 #94CB45 #45CBBF
split-complementary
#7C45CB #CBBF45 #51CB45
monochromatic
#432175 #5F2EA5 #7C45CB #9E75D8 #BFA5E6

Accessibility & contrast

On white

5.88
#7C45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7C45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C45CB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C45CB#FFFFFF#000000##FFFFFF
##7C45CB1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#696482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c45cb;
/* rgb */ color: rgb(124, 69, 203);
/* oklch */ color: oklch(52.7% 0.197 298.1);
Tailwind
colors: {
  custom: {
    50: '#a87cdc',
    500: '#7c45cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c45cb;
$custom-light: #a87cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c45cb",
  "rgb": {
    "r": 124,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 264.627,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5269,
    "c": 0.19739,
    "h": 298.1
  },
  "luminance": 0.12853
}

Semantic roles & 50–950 ramp

primary
#7C45CB
secondary
#BBD399
accent
#E048A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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