#7138BE#7138BE

#7138BE is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.198 H 298.1°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7138BE
RGBrgb(113, 56, 190)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 71%, 75%)
CMYKcmyk(40.5%, 70.5%, 0%, 25.5%)
CIE-LABlab(37.94, 52.02, -61.01)
CIE-LCHlch(37.94, 80.18, 310.45°)
OKLaboklab(48.81% 0.0931 -0.1742)
OKLCHoklch(48.81% 0.198 298.1)
XYZxyz(17.5161, 10.0565, 49.7235)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138BE #85BE38
analogous
#3842BE #7138BE #B438BE
triadic
#7138BE #BE7138 #38BE71
tetradic
#7138BE #BE3842 #85BE38 #38BEB4
square
#7138BE #BE3842 #85BE38 #38BEB4
split-complementary
#7138BE #BEB438 #42BE38
monochromatic
#391C5F #552A8F #7138BE #9162D1 #B292DF

Accessibility & contrast

On white

6.97
#7138BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7138BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138BE
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138BE#FFFFFF#000000##FFFFFF
##7138BE1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#5E5977
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7138be;
/* rgb */ color: rgb(113, 56, 190);
/* oklch */ color: oklch(48.8% 0.198 298.1);
Tailwind
colors: {
  custom: {
    50: '#a073d3',
    500: '#7138be',
    950: '#000000',
  },
}
SCSS
$custom: #7138be;
$custom-light: #a073d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7138be",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 265.522,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48809,
    "c": 0.19755,
    "h": 298.1
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

primary
#7138BE
secondary
#AECA88
accent
#DE4A9F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7138BE

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

Preview Lab → · Contrast checker → · Palette generator →

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