#7138BD#7138BD

#7138BD is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.196 H 298.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7138BD
RGBrgb(113, 56, 189)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 70%, 74%)
CMYKcmyk(40.2%, 70.4%, 0%, 25.9%)
CIE-LABlab(37.87, 51.77, -60.55)
CIE-LCHlch(37.87, 79.66, 310.53°)
OKLaboklab(48.73% 0.0933 -0.1729)
OKLCHoklch(48.73% 0.196 298.3)
XYZxyz(17.4072, 10.0129, 49.1498)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138BD #84BD38
analogous
#3842BD #7138BD #B338BD
triadic
#7138BD #BD7138 #38BD71
tetradic
#7138BD #BD3842 #84BD38 #38BDB3
square
#7138BD #BD3842 #84BD38 #38BDB3
split-complementary
#7138BD #BDB338 #42BD38
monochromatic
#391C5F #552A8E #7138BD #9162D0 #B291DE

Accessibility & contrast

On white

6.99
#7138BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7138BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138BD
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138BD#FFFFFF#000000##FFFFFF
##7138BD1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#5F5976
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7138bd;
/* rgb */ color: rgb(113, 56, 189);
/* oklch */ color: oklch(48.7% 0.196 298.3);
Tailwind
colors: {
  custom: {
    50: '#a073d2',
    500: '#7138bd',
    950: '#000000',
  },
}
SCSS
$custom: #7138bd;
$custom-light: #a073d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7138bd",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 265.714,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48729,
    "c": 0.19645,
    "h": 298.3
  },
  "luminance": 0.10013
}

Semantic roles & 50–950 ramp

primary
#7138BD
secondary
#ADC987
accent
#DE4A9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7138BD

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

Preview Lab → · Contrast checker → · Palette generator →

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