#7D40C9#7D40C9

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

Color values

HEX#7D40C9
RGBrgb(125, 64, 201)
HSLhsl(267, 56%, 52%)
HSVhsv(267, 68%, 79%)
CMYKcmyk(37.8%, 68.2%, 0%, 21.2%)
CIE-LABlab(41.60, 53.18, -61.42)
CIE-LCHlch(41.60, 81.24, 310.89°)
OKLaboklab(52% 0.1 -0.1751)
OKLCHoklch(52% 0.202 299.7)
XYZxyz(20.8308, 12.2436, 56.5128)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C9 #8CC940
analogous
#4048C9 #7D40C9 #C140C9
triadic
#7D40C9 #C97D40 #40C97D
tetradic
#7D40C9 #C94048 #8CC940 #40C9C1
square
#7D40C9 #C94048 #8CC940 #40C9C1
split-complementary
#7D40C9 #C9C140 #48C940
monochromatic
#431F6F #602D9F #7D40C9 #9D70D6 #BE9FE4

Accessibility & contrast

On white

6.09
#7D40C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7D40C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D40C9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C9#FFFFFF#000000##FFFFFF
##7D40C91.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#6C607F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d40c9;
/* rgb */ color: rgb(125, 64, 201);
/* oklch */ color: oklch(52.0% 0.202 299.7);
Tailwind
colors: {
  custom: {
    50: '#a879da',
    500: '#7d40c9',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c9;
$custom-light: #a879da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c9",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 266.715,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51996,
    "c": 0.20161,
    "h": 299.7
  },
  "luminance": 0.12244
}

Semantic roles & 50–950 ramp

primary
#7D40C9
secondary
#B6D094
accent
#DF499C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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