#7138A2#7138A2

#7138A2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.166 H 305.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7138A2
RGBrgb(113, 56, 162)
HSLhsl(272, 49%, 43%)
HSVhsv(272, 65%, 64%)
CMYKcmyk(30.2%, 65.4%, 0%, 36.5%)
CIE-LABlab(35.88, 45.02, -47.71)
CIE-LCHlch(35.88, 65.60, 313.34°)
OKLaboklab(46.69% 0.0968 -0.1352)
OKLCHoklch(46.69% 0.166 305.6)
XYZxyz(14.7444, 8.9478, 35.1258)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138A2 #69A238
analogous
#3C38A2 #7138A2 #A2389E
triadic
#7138A2 #A27138 #38A271
tetradic
#7138A2 #A23C38 #69A238 #389EA2
square
#7138A2 #A23C38 #69A238 #389EA2
split-complementary
#7138A2 #9EA238 #38A23C
monochromatic
#321947 #512875 #7138A2 #9053C4 #AD81D3

Accessibility & contrast

On white

7.53
#7138A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7138A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138A2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138A2#FFFFFF#000000##FFFFFF
##7138A21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#1D55A0
Tritanopia (blue-blind)
#684F68
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7138a2;
/* rgb */ color: rgb(113, 56, 162);
/* oklch */ color: oklch(46.7% 0.166 305.6);
Tailwind
colors: {
  custom: {
    50: '#9e72be',
    500: '#7138a2',
    950: '#000000',
  },
}
SCSS
$custom: #7138a2;
$custom-light: #9e72be;
$custom-dark: #000000;
JSON
{
  "hex": "#7138a2",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 272.264,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46685,
    "c": 0.16623,
    "h": 305.6
  },
  "luminance": 0.08948
}

Semantic roles & 50–950 ramp

primary
#7138A2
secondary
#98BD79
accent
#D8508F
background
#FAF7FB
surface
#F3EDF7
border
#CDC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7138A2

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

Preview Lab → · Contrast checker → · Palette generator →

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