#7140C4#7140C4

#7140C4 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.3% C 0.195 H 295.6°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7140C4
RGBrgb(113, 64, 196)
HSLhsl(262, 53%, 51%)
HSVhsv(262, 67%, 77%)
CMYKcmyk(42.3%, 67.3%, 0%, 23.1%)
CIE-LABlab(39.85, 49.57, -61.41)
CIE-LCHlch(39.85, 78.92, 308.91°)
OKLaboklab(50.32% 0.0841 -0.1755)
OKLCHoklch(50.32% 0.195 295.6)
XYZxyz(18.6046, 11.1626, 53.3882)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7140C4 #93C440
analogous
#4051C4 #7140C4 #B340C4
triadic
#7140C4 #C47140 #40C471
tetradic
#7140C4 #C44051 #93C440 #40C4B3
square
#7140C4 #C44051 #93C440 #40C4B3
split-complementary
#7140C4 #C4B340 #51C440
monochromatic
#3B2069 #562F98 #7140C4 #946FD2 #B79EE1

Accessibility & contrast

On white

6.50
#7140C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7140C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7140C4
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7140C4#FFFFFF#000000##FFFFFF
##7140C41.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#5B607D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7140c4;
/* rgb */ color: rgb(113, 64, 196);
/* oklch */ color: oklch(50.3% 0.195 295.6);
Tailwind
colors: {
  custom: {
    50: '#a078d7',
    500: '#7140c4',
    950: '#000000',
  },
}
SCSS
$custom: #7140c4;
$custom-light: #a078d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7140c4",
  "rgb": {
    "r": 113,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 262.273,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50317,
    "c": 0.19456,
    "h": 295.6
  },
  "luminance": 0.11163
}

Semantic roles & 50–950 ramp

primary
#7140C4
secondary
#B7CD93
accent
#DC4CA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #7140C4

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

Preview Lab → · Contrast checker → · Palette generator →

#7140C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva