#7C40CA#7C40CA

#7C40CA is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.203 H 299.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7C40CA
RGBrgb(124, 64, 202)
HSLhsl(266, 57%, 52%)
HSVhsv(266, 68%, 79%)
CMYKcmyk(38.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.56, 53.23, -62.07)
CIE-LCHlch(41.56, 81.77, 310.62°)
OKLaboklab(51.96% 0.0985 -0.177)
OKLCHoklch(51.96% 0.203 299.1)
XYZxyz(20.8036, 12.2159, 57.1275)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40CA #8ECA40
analogous
#4049CA #7C40CA #C140CA
triadic
#7C40CA #CA7C40 #40CA7C
tetradic
#7C40CA #CA4049 #8ECA40 #40CAC1
square
#7C40CA #CA4049 #8ECA40 #40CAC1
split-complementary
#7C40CA #CAC140 #49CA40
monochromatic
#431F70 #5F2CA0 #7C40CA #9D70D7 #BEA0E5

Accessibility & contrast

On white

6.10
#7C40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7C40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40CA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40CA#FFFFFF#000000##FFFFFF
##7C40CA1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#6A6180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c40ca;
/* rgb */ color: rgb(124, 64, 202);
/* oklch */ color: oklch(52.0% 0.203 299.1);
Tailwind
colors: {
  custom: {
    50: '#a879db',
    500: '#7c40ca',
    950: '#000000',
  },
}
SCSS
$custom: #7c40ca;
$custom-light: #a879db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40ca",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 266.087,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.20257,
    "h": 299.1
  },
  "luminance": 0.12216
}

Semantic roles & 50–950 ramp

primary
#7C40CA
secondary
#B7D195
accent
#E0489E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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