#7138BB#7138BB

#7138BB is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.6% C 0.194 H 298.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7138BB
RGBrgb(113, 56, 187)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 70%, 73%)
CMYKcmyk(39.6%, 70.1%, 0%, 26.7%)
CIE-LABlab(37.71, 51.26, -59.63)
CIE-LCHlch(37.71, 78.63, 310.68°)
OKLaboklab(48.57% 0.0936 -0.1702)
OKLCHoklch(48.57% 0.194 298.8)
XYZxyz(17.1916, 9.9267, 48.0144)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138BB #82BB38
analogous
#3841BB #7138BB #B238BB
triadic
#7138BB #BB7138 #38BB71
tetradic
#7138BB #BB3841 #82BB38 #38BBB2
square
#7138BB #BB3841 #82BB38 #38BBB2
split-complementary
#7138BB #BBB238 #41BB38
monochromatic
#381C5D #552A8C #7138BB #9161D0 #B290DE

Accessibility & contrast

On white

7.03
#7138BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7138BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138BB
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138BB#FFFFFF#000000##FFFFFF
##7138BB1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#5F5875
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7138bb;
/* rgb */ color: rgb(113, 56, 187);
/* oklch */ color: oklch(48.6% 0.194 298.8);
Tailwind
colors: {
  custom: {
    50: '#a073d0',
    500: '#7138bb',
    950: '#000000',
  },
}
SCSS
$custom: #7138bb;
$custom-light: #a073d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7138bb",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 266.107,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4857,
    "c": 0.19423,
    "h": 298.8
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#7138BB
secondary
#ACC886
accent
#DD4B9D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7138BB

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

Preview Lab → · Contrast checker → · Palette generator →

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