#7138C7#7138C7

#7138C7 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.5% C 0.207 H 296.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7138C7
RGBrgb(113, 56, 199)
HSLhsl(264, 56%, 50%)
HSVhsv(264, 72%, 78%)
CMYKcmyk(43.2%, 71.9%, 0%, 22%)
CIE-LABlab(38.66, 54.32, -65.10)
CIE-LCHlch(38.66, 84.79, 309.84°)
OKLaboklab(49.54% 0.0913 -0.1863)
OKLCHoklch(49.54% 0.207 296.1)
XYZxyz(18.5303, 10.4622, 55.0649)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138C7 #8EC738
analogous
#3847C7 #7138C7 #B838C7
triadic
#7138C7 #C77138 #38C771
tetradic
#7138C7 #C73847 #8EC738 #38C7B8
square
#7138C7 #C73847 #8EC738 #38C7B8
split-complementary
#7138C7 #C7B838 #47C738
monochromatic
#3B1D67 #562B97 #7138C7 #9368D4 #B598E2

Accessibility & contrast

On white

6.79
#7138C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7138C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138C7
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138C7#FFFFFF#000000##FFFFFF
##7138C71.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#5A5C7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7138c7;
/* rgb */ color: rgb(113, 56, 199);
/* oklch */ color: oklch(49.5% 0.207 296.1);
Tailwind
colors: {
  custom: {
    50: '#a174d9',
    500: '#7138c7',
    950: '#000000',
  },
}
SCSS
$custom: #7138c7;
$custom-light: #a174d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7138c7",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 263.916,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.4954,
    "c": 0.20747,
    "h": 296.1
  },
  "luminance": 0.10463
}

Semantic roles & 50–950 ramp

primary
#7138C7
secondary
#B4CD8D
accent
#DF48A3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7138C7

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

Preview Lab → · Contrast checker → · Palette generator →

#7138C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva