#7C40C8#7C40C8

#7C40C8 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.200 H 299.5°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7C40C8
RGBrgb(124, 64, 200)
HSLhsl(266, 55%, 52%)
HSVhsv(266, 68%, 78%)
CMYKcmyk(38%, 68%, 0%, 21.6%)
CIE-LABlab(41.41, 52.73, -61.15)
CIE-LCHlch(41.41, 80.75, 310.77°)
OKLaboklab(51.81% 0.0988 -0.1743)
OKLCHoklch(51.81% 0.2 299.5)
XYZxyz(20.5683, 12.1218, 55.8885)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C8 #8CC840
analogous
#4048C8 #7C40C8 #C040C8
triadic
#7C40C8 #C87C40 #40C87C
tetradic
#7C40C8 #C84048 #8CC840 #40C8C0
square
#7C40C8 #C84048 #8CC840 #40C8C0
split-complementary
#7C40C8 #C8C040 #48C840
monochromatic
#42206E #5F2D9D #7C40C8 #9D70D6 #BD9FE3

Accessibility & contrast

On white

6.13
#7C40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7C40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C8#FFFFFF#000000##FFFFFF
##7C40C81.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#6B607F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c40c8;
/* rgb */ color: rgb(124, 64, 200);
/* oklch */ color: oklch(51.8% 0.200 299.5);
Tailwind
colors: {
  custom: {
    50: '#a879da',
    500: '#7c40c8',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c8;
$custom-light: #a879da;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c8",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 266.471,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.20036,
    "h": 299.5
  },
  "luminance": 0.12122
}

Semantic roles & 50–950 ramp

primary
#7C40C8
secondary
#B5D094
accent
#DF499D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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