#7D40C8#7D40C8

#7D40C8 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.201 H 300.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7D40C8
RGBrgb(125, 64, 200)
HSLhsl(267, 55%, 52%)
HSVhsv(267, 68%, 78%)
CMYKcmyk(37.5%, 68%, 0%, 21.6%)
CIE-LABlab(41.53, 52.93, -60.96)
CIE-LCHlch(41.53, 80.73, 310.97°)
OKLaboklab(51.92% 0.1001 -0.1737)
OKLCHoklch(51.92% 0.201 300)
XYZxyz(20.7136, 12.1967, 55.8953)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D40C8 #8BC840
analogous
#4047C8 #7D40C8 #C140C8
triadic
#7D40C8 #C87D40 #40C87D
tetradic
#7D40C8 #C84047 #8BC840 #40C8C1
square
#7D40C8 #C84047 #8BC840 #40C8C1
split-complementary
#7D40C8 #C8C140 #47C840
monochromatic
#43206E #602D9D #7D40C8 #9D70D6 #BE9FE3

Accessibility & contrast

On white

6.11
#7D40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D40C8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D40C8#FFFFFF#000000##FFFFFF
##7D40C81.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d40c8;
/* rgb */ color: rgb(125, 64, 200);
/* oklch */ color: oklch(51.9% 0.201 300.0);
Tailwind
colors: {
  custom: {
    50: '#a879da',
    500: '#7d40c8',
    950: '#000000',
  },
}
SCSS
$custom: #7d40c8;
$custom-light: #a879da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d40c8",
  "rgb": {
    "r": 125,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 266.912,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5192,
    "c": 0.20052,
    "h": 300
  },
  "luminance": 0.12197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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