#7138CD#7138CD

#7138CD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.214 H 294.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7138CD
RGBrgb(113, 56, 205)
HSLhsl(263, 60%, 51%)
HSVhsv(263, 73%, 80%)
CMYKcmyk(44.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(39.15, 55.87, -67.79)
CIE-LCHlch(39.15, 87.84, 309.49°)
OKLaboklab(50.04% 0.0901 -0.1942)
OKLCHoklch(50.04% 0.214 294.9)
XYZxyz(19.2407, 10.7463, 58.8063)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138CD #94CD38
analogous
#3849CD #7138CD #BB38CD
triadic
#7138CD #CD7138 #38CD71
tetradic
#7138CD #CD3849 #94CD38 #38CDBB
square
#7138CD #CD3849 #94CD38 #38CDBB
split-complementary
#7138CD #CDBB38 #49CD38
monochromatic
#3C1C6F #5628A0 #7138CD #9469D9 #B79AE6

Accessibility & contrast

On white

6.67
#7138CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7138CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138CD
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138CD#FFFFFF#000000##FFFFFF
##7138CD1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#575F7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7138cd;
/* rgb */ color: rgb(113, 56, 205);
/* oklch */ color: oklch(50.0% 0.214 294.9);
Tailwind
colors: {
  custom: {
    50: '#a274dd',
    500: '#7138cd',
    950: '#000000',
  },
}
SCSS
$custom: #7138cd;
$custom-light: #a274dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7138cd",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 262.953,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50039,
    "c": 0.21403,
    "h": 294.9
  },
  "luminance": 0.10747
}

Semantic roles & 50–950 ramp

primary
#7138CD
secondary
#B8D18F
accent
#E345A6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7138CD

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

Preview Lab → · Contrast checker → · Palette generator →

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