#7138C3#7138C3

#7138C3 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.203 H 297.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7138C3
RGBrgb(113, 56, 195)
HSLhsl(265, 55%, 49%)
HSVhsv(265, 71%, 76%)
CMYKcmyk(42.1%, 71.3%, 0%, 23.5%)
CIE-LABlab(38.34, 53.30, -63.29)
CIE-LCHlch(38.34, 82.75, 310.10°)
OKLaboklab(49.21% 0.0921 -0.181)
OKLCHoklch(49.21% 0.203 297)
XYZxyz(18.0720, 10.2788, 52.6510)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138C3 #8AC338
analogous
#3845C3 #7138C3 #B638C3
triadic
#7138C3 #C37138 #38C371
tetradic
#7138C3 #C33845 #8AC338 #38C3B6
square
#7138C3 #C33845 #8AC338 #38C3B6
split-complementary
#7138C3 #C3B638 #45C338
monochromatic
#3A1D64 #552A93 #7138C3 #9265D3 #B495E1

Accessibility & contrast

On white

6.87
#7138C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7138C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138C3
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138C3#FFFFFF#000000##FFFFFF
##7138C31.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#5C5B7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7138c3;
/* rgb */ color: rgb(113, 56, 195);
/* oklch */ color: oklch(49.2% 0.203 297.0);
Tailwind
colors: {
  custom: {
    50: '#a173d6',
    500: '#7138c3',
    950: '#000000',
  },
}
SCSS
$custom: #7138c3;
$custom-light: #a173d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7138c3",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 264.604,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49213,
    "c": 0.20307,
    "h": 297
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#7138C3
secondary
#B1CC8B
accent
#DF49A1
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7138C3

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

Preview Lab → · Contrast checker → · Palette generator →

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