#7138C2#7138C2

#7138C2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.202 H 297.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7138C2
RGBrgb(113, 56, 194)
HSLhsl(265, 55%, 49%)
HSVhsv(265, 71%, 76%)
CMYKcmyk(41.8%, 71.1%, 0%, 23.9%)
CIE-LABlab(38.26, 53.04, -62.84)
CIE-LCHlch(38.26, 82.23, 310.17°)
OKLaboklab(49.13% 0.0923 -0.1796)
OKLCHoklch(49.13% 0.202 297.2)
XYZxyz(17.9593, 10.2338, 52.0576)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138C2 #89C238
analogous
#3844C2 #7138C2 #B638C2
triadic
#7138C2 #C27138 #38C271
tetradic
#7138C2 #C23844 #89C238 #38C2B6
square
#7138C2 #C23844 #89C238 #38C2B6
split-complementary
#7138C2 #C2B638 #44C238
monochromatic
#3A1D63 #552A93 #7138C2 #9265D2 #B494E0

Accessibility & contrast

On white

6.89
#7138C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7138C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138C2
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138C2#FFFFFF#000000##FFFFFF
##7138C21.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#5C5B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7138c2;
/* rgb */ color: rgb(113, 56, 194);
/* oklch */ color: oklch(49.1% 0.202 297.2);
Tailwind
colors: {
  custom: {
    50: '#a173d5',
    500: '#7138c2',
    950: '#000000',
  },
}
SCSS
$custom: #7138c2;
$custom-light: #a173d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7138c2",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 264.783,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.20197,
    "h": 297.2
  },
  "luminance": 0.10234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7138C2

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

Preview Lab → · Contrast checker → · Palette generator →

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