#7138C4#7138C4

#7138C4 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.204 H 296.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7138C4
RGBrgb(113, 56, 196)
HSLhsl(264, 56%, 49%)
HSVhsv(264, 71%, 77%)
CMYKcmyk(42.3%, 71.4%, 0%, 23.1%)
CIE-LABlab(38.42, 53.55, -63.75)
CIE-LCHlch(38.42, 83.26, 310.03°)
OKLaboklab(49.29% 0.092 -0.1823)
OKLCHoklch(49.29% 0.204 296.8)
XYZxyz(18.1854, 10.3242, 53.2485)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138C4 #8BC438
analogous
#3845C4 #7138C4 #B738C4
triadic
#7138C4 #C47138 #38C471
tetradic
#7138C4 #C43845 #8BC438 #38C4B7
square
#7138C4 #C43845 #8BC438 #38C4B7
split-complementary
#7138C4 #C4B738 #45C438
monochromatic
#3A1D65 #562A94 #7138C4 #9266D3 #B496E1

Accessibility & contrast

On white

6.85
#7138C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7138C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138C4
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138C4#FFFFFF#000000##FFFFFF
##7138C41.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0059C1
Tritanopia (blue-blind)
#5B5B7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7138c4;
/* rgb */ color: rgb(113, 56, 196);
/* oklch */ color: oklch(49.3% 0.204 296.8);
Tailwind
colors: {
  custom: {
    50: '#a173d7',
    500: '#7138c4',
    950: '#000000',
  },
}
SCSS
$custom: #7138c4;
$custom-light: #a173d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7138c4",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 264.429,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49294,
    "c": 0.20418,
    "h": 296.8
  },
  "luminance": 0.10325
}

Semantic roles & 50–950 ramp

primary
#7138C4
secondary
#B2CC8C
accent
#DF49A2
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7138C4

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

Preview Lab → · Contrast checker → · Palette generator →

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