#7138B4#7138B4

#7138B4 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.186 H 300.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7138B4
RGBrgb(113, 56, 180)
HSLhsl(268, 53%, 46%)
HSVhsv(268, 69%, 71%)
CMYKcmyk(37.2%, 68.9%, 0%, 29.4%)
CIE-LABlab(37.18, 49.49, -56.36)
CIE-LCHlch(37.18, 75.00, 311.28°)
OKLaboklab(48.02% 0.0947 -0.1606)
OKLCHoklch(48.02% 0.186 300.5)
XYZxyz(16.4604, 9.6342, 44.1636)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138B4 #7BB438
analogous
#383DB4 #7138B4 #AF38B4
triadic
#7138B4 #B47138 #38B471
tetradic
#7138B4 #B4383D #7BB438 #38B4AF
square
#7138B4 #B4383D #7BB438 #38B4AF
split-complementary
#7138B4 #B4AF38 #3DB438
monochromatic
#361B57 #542985 #7138B4 #905DCD #B08BDB

Accessibility & contrast

On white

7.18
#7138B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7138B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138B4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138B4#FFFFFF#000000##FFFFFF
##7138B41.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#625572
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7138b4;
/* rgb */ color: rgb(113, 56, 180);
/* oklch */ color: oklch(48.0% 0.186 300.5);
Tailwind
colors: {
  custom: {
    50: '#9f73cb',
    500: '#7138b4',
    950: '#000000',
  },
}
SCSS
$custom: #7138b4;
$custom-light: #9f73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7138b4",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 267.581,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48023,
    "c": 0.18643,
    "h": 300.5
  },
  "luminance": 0.09634
}

Semantic roles & 50–950 ramp

primary
#7138B4
secondary
#A7C582
accent
#DC4C9A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7138B4

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

Preview Lab → · Contrast checker → · Palette generator →

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