#7138A4#7138A4

#7138A4 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.8% C 0.168 H 305.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7138A4
RGBrgb(113, 56, 164)
HSLhsl(272, 49%, 43%)
HSVhsv(272, 66%, 64%)
CMYKcmyk(31.1%, 65.9%, 0%, 35.7%)
CIE-LABlab(36.02, 45.51, -48.69)
CIE-LCHlch(36.02, 66.65, 313.06°)
OKLaboklab(46.83% 0.0966 -0.138)
OKLCHoklch(46.83% 0.168 305)
XYZxyz(14.9236, 9.0195, 36.0695)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138A4 #6BA438
analogous
#3B38A4 #7138A4 #A438A1
triadic
#7138A4 #A47138 #38A471
tetradic
#7138A4 #A43B38 #6BA438 #38A1A4
square
#7138A4 #A43B38 #6BA438 #38A1A4
split-complementary
#7138A4 #A1A438 #38A43B
monochromatic
#321949 #522876 #7138A4 #9054C5 #AD82D4

Accessibility & contrast

On white

7.49
#7138A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7138A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138A4
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138A4#FFFFFF#000000##FFFFFF
##7138A41.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#1A55A2
Tritanopia (blue-blind)
#684F69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7138a4;
/* rgb */ color: rgb(113, 56, 164);
/* oklch */ color: oklch(46.8% 0.168 305.0);
Tailwind
colors: {
  custom: {
    50: '#9e72c0',
    500: '#7138a4',
    950: '#000000',
  },
}
SCSS
$custom: #7138a4;
$custom-light: #9e72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7138a4",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 271.667,
    "s": 49.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46828,
    "c": 0.16848,
    "h": 305
  },
  "luminance": 0.09019
}

Semantic roles & 50–950 ramp

primary
#7138A4
secondary
#9ABE7A
accent
#D94F90
background
#FAF7FB
surface
#F3EDF7
border
#CDC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7138A4

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

Preview Lab → · Contrast checker → · Palette generator →

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