#7140CB#7140CB

#7140CB is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.203 H 294.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7140CB
RGBrgb(113, 64, 203)
HSLhsl(261, 57%, 52%)
HSVhsv(261, 68%, 80%)
CMYKcmyk(44.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(40.39, 51.42, -64.60)
CIE-LCHlch(40.39, 82.57, 308.52°)
OKLaboklab(50.87% 0.083 -0.1848)
OKLCHoklch(50.87% 0.203 294.2)
XYZxyz(19.4200, 11.4888, 57.6827)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7140CB #9ACB40
analogous
#4055CB #7140CB #B740CB
triadic
#7140CB #CB7140 #40CB71
tetradic
#7140CB #CB4055 #9ACB40 #40CBB7
square
#7140CB #CB4055 #9ACB40 #40CBB7
split-complementary
#7140CB #CBB740 #55CB40
monochromatic
#3C1F72 #562CA2 #7140CB #9570D8 #B9A0E5

Accessibility & contrast

On white

6.37
#7140CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7140CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7140CB
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7140CB#FFFFFF#000000##FFFFFF
##7140CB1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#586281
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7140cb;
/* rgb */ color: rgb(113, 64, 203);
/* oklch */ color: oklch(50.9% 0.203 294.2);
Tailwind
colors: {
  custom: {
    50: '#a178dc',
    500: '#7140cb',
    950: '#000000',
  },
}
SCSS
$custom: #7140cb;
$custom-light: #a178dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7140cb",
  "rgb": {
    "r": 113,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 261.151,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50872,
    "c": 0.20262,
    "h": 294.2
  },
  "luminance": 0.11489
}

Semantic roles & 50–950 ramp

primary
#7140CB
secondary
#BCD295
accent
#E047AA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7140CB

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

Preview Lab → · Contrast checker → · Palette generator →

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