#7138BC#7138BC

#7138BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.6% C 0.195 H 298.6°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7138BC
RGBrgb(113, 56, 188)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 70%, 74%)
CMYKcmyk(39.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(37.79, 51.51, -60.09)
CIE-LCHlch(37.79, 79.14, 310.60°)
OKLaboklab(48.65% 0.0934 -0.1715)
OKLCHoklch(48.65% 0.195 298.6)
XYZxyz(17.2990, 9.9697, 48.5801)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138BC #83BC38
analogous
#3841BC #7138BC #B338BC
triadic
#7138BC #BC7138 #38BC71
tetradic
#7138BC #BC3841 #83BC38 #38BCB3
square
#7138BC #BC3841 #83BC38 #38BCB3
split-complementary
#7138BC #BCB338 #41BC38
monochromatic
#381C5E #552A8D #7138BC #9161D0 #B290DE

Accessibility & contrast

On white

7.01
#7138BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7138BC
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138BC#FFFFFF#000000##FFFFFF
##7138BC1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#5F5876
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7138bc;
/* rgb */ color: rgb(113, 56, 188);
/* oklch */ color: oklch(48.6% 0.195 298.6);
Tailwind
colors: {
  custom: {
    50: '#a073d1',
    500: '#7138bc',
    950: '#000000',
  },
}
SCSS
$custom: #7138bc;
$custom-light: #a073d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7138bc",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 265.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4865,
    "c": 0.19534,
    "h": 298.6
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#7138BC
secondary
#ACC987
accent
#DD4A9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7138BC

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

Preview Lab → · Contrast checker → · Palette generator →

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