#7138AD#7138AD

#7138AD is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.179 H 302.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7138AD
RGBrgb(113, 56, 173)
HSLhsl(269, 51%, 45%)
HSVhsv(269, 68%, 68%)
CMYKcmyk(34.7%, 67.6%, 0%, 32.2%)
CIE-LABlab(36.66, 47.73, -53.04)
CIE-LCHlch(36.66, 71.36, 311.98°)
OKLaboklab(47.49% 0.0957 -0.1508)
OKLCHoklch(47.49% 0.179 302.4)
XYZxyz(15.7653, 9.3562, 40.5024)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138AD #74AD38
analogous
#3839AD #7138AD #AC38AD
triadic
#7138AD #AD7138 #38AD71
tetradic
#7138AD #AD3839 #74AD38 #38ADAC
square
#7138AD #AD3839 #74AD38 #38ADAC
split-complementary
#7138AD #ADAC38 #39AD38
monochromatic
#351A51 #53297F #7138AD #9059C9 #AF87D8

Accessibility & contrast

On white

7.31
#7138AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7138AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138AD
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138AD#FFFFFF#000000##FFFFFF
##7138AD1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#65536E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7138ad;
/* rgb */ color: rgb(113, 56, 173);
/* oklch */ color: oklch(47.5% 0.179 302.4);
Tailwind
colors: {
  custom: {
    50: '#9f73c6',
    500: '#7138ad',
    950: '#000000',
  },
}
SCSS
$custom: #7138ad;
$custom-light: #9f73c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7138ad",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 269.231,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4749,
    "c": 0.17861,
    "h": 302.4
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#7138AD
secondary
#A1C27F
accent
#DB4D96
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7138AD

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

Preview Lab → · Contrast checker → · Palette generator →

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