#7138C5#7138C5

#7138C5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.4% C 0.205 H 296.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7138C5
RGBrgb(113, 56, 197)
HSLhsl(264, 56%, 50%)
HSVhsv(264, 72%, 77%)
CMYKcmyk(42.6%, 71.6%, 0%, 22.7%)
CIE-LABlab(38.50, 53.81, -64.20)
CIE-LCHlch(38.50, 83.77, 309.97°)
OKLaboklab(49.38% 0.0918 -0.1836)
OKLCHoklch(49.38% 0.205 296.5)
XYZxyz(18.2996, 10.3699, 53.8499)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138C5 #8CC538
analogous
#3846C5 #7138C5 #B738C5
triadic
#7138C5 #C57138 #38C571
tetradic
#7138C5 #C53846 #8CC538 #38C5B7
square
#7138C5 #C53846 #8CC538 #38C5B7
split-complementary
#7138C5 #C5B738 #46C538
monochromatic
#3A1D66 #562A95 #7138C5 #9367D4 #B596E1

Accessibility & contrast

On white

6.83
#7138C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7138C5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138C5#FFFFFF#000000##FFFFFF
##7138C51.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#5B5C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7138c5;
/* rgb */ color: rgb(113, 56, 197);
/* oklch */ color: oklch(49.4% 0.205 296.5);
Tailwind
colors: {
  custom: {
    50: '#a173d8',
    500: '#7138c5',
    950: '#000000',
  },
}
SCSS
$custom: #7138c5;
$custom-light: #a173d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7138c5",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 264.255,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49376,
    "c": 0.20528,
    "h": 296.5
  },
  "luminance": 0.1037
}

Semantic roles & 50–950 ramp

primary
#7138C5
secondary
#B3CD8C
accent
#DF49A2
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7138C5

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

Preview Lab → · Contrast checker → · Palette generator →

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