#7138AB#7138AB

#7138AB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.3% C 0.176 H 302.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7138AB
RGBrgb(113, 56, 171)
HSLhsl(270, 51%, 45%)
HSVhsv(270, 67%, 67%)
CMYKcmyk(33.9%, 67.3%, 0%, 32.9%)
CIE-LABlab(36.52, 47.24, -52.08)
CIE-LCHlch(36.52, 70.31, 312.21°)
OKLaboklab(47.34% 0.0959 -0.148)
OKLCHoklch(47.34% 0.176 302.9)
XYZxyz(15.5732, 9.2793, 39.4908)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138AB #72AB38
analogous
#3839AB #7138AB #AB38AB
triadic
#7138AB #AB7138 #38AB71
tetradic
#7138AB #AB3839 #72AB38 #38ABAB
square
#7138AB #AB3839 #72AB38 #38ABAB
split-complementary
#7138AB #ABAB38 #39AB38
monochromatic
#341A4F #53297D #7138AB #9058C8 #AE86D7

Accessibility & contrast

On white

7.35
#7138AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7138AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138AB
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138AB#FFFFFF#000000##FFFFFF
##7138AB1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0656A9
Tritanopia (blue-blind)
#65526D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7138ab;
/* rgb */ color: rgb(113, 56, 171);
/* oklch */ color: oklch(47.3% 0.176 302.9);
Tailwind
colors: {
  custom: {
    50: '#9e73c5',
    500: '#7138ab',
    950: '#000000',
  },
}
SCSS
$custom: #7138ab;
$custom-light: #9e73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7138ab",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 269.739,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47341,
    "c": 0.17636,
    "h": 302.9
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#7138AB
secondary
#A0C17D
accent
#DA4E95
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7138AB

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

Preview Lab → · Contrast checker → · Palette generator →

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