#7138B2#7138B2

#7138B2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.9% C 0.184 H 301.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7138B2
RGBrgb(113, 56, 178)
HSLhsl(268, 52%, 46%)
HSVhsv(268, 69%, 70%)
CMYKcmyk(36.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(37.03, 48.98, -55.42)
CIE-LCHlch(37.03, 73.96, 311.47°)
OKLaboklab(47.87% 0.095 -0.1578)
OKLCHoklch(47.87% 0.184 301.1)
XYZxyz(16.2582, 9.5533, 43.0983)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138B2 #79B238
analogous
#383CB2 #7138B2 #AE38B2
triadic
#7138B2 #B27138 #38B271
tetradic
#7138B2 #B2383C #79B238 #38B2AE
square
#7138B2 #B2383C #79B238 #38B2AE
split-complementary
#7138B2 #B2AE38 #3CB238
monochromatic
#361B55 #532983 #7138B2 #905CCC #B08ADA

Accessibility & contrast

On white

7.22
#7138B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7138B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138B2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138B2#FFFFFF#000000##FFFFFF
##7138B21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#635470
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7138b2;
/* rgb */ color: rgb(113, 56, 178);
/* oklch */ color: oklch(47.9% 0.184 301.1);
Tailwind
colors: {
  custom: {
    50: '#9f73ca',
    500: '#7138b2',
    950: '#000000',
  },
}
SCSS
$custom: #7138b2;
$custom-light: #9f73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7138b2",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 268.033,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47869,
    "c": 0.1842,
    "h": 301.1
  },
  "luminance": 0.09553
}

Semantic roles & 50–950 ramp

primary
#7138B2
secondary
#A5C581
accent
#DC4C99
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7138B2

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

Preview Lab → · Contrast checker → · Palette generator →

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