#7638C5#7638C5

#7638C5 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.9% C 0.206 H 298.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7638C5
RGBrgb(118, 56, 197)
HSLhsl(266, 56%, 50%)
HSVhsv(266, 72%, 77%)
CMYKcmyk(40.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(39.09, 54.70, -63.21)
CIE-LCHlch(39.09, 83.59, 310.87°)
OKLaboklab(49.93% 0.0988 -0.1805)
OKLCHoklch(49.93% 0.206 298.7)
XYZxyz(18.9609, 10.7109, 53.8809)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638C5 #87C538
analogous
#3841C5 #7638C5 #BD38C5
triadic
#7638C5 #C57638 #38C576
tetradic
#7638C5 #C53841 #87C538 #38C5BD
square
#7638C5 #C53841 #87C538 #38C5BD
split-complementary
#7638C5 #C5BD38 #41C538
monochromatic
#3D1D66 #592A95 #7638C5 #9767D4 #B796E1

Accessibility & contrast

On white

6.68
#7638C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7638C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7638C5
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638C5#FFFFFF#000000##FFFFFF
##7638C51.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#635B7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7638c5;
/* rgb */ color: rgb(118, 56, 197);
/* oklch */ color: oklch(49.9% 0.206 298.7);
Tailwind
colors: {
  custom: {
    50: '#a474d8',
    500: '#7638c5',
    950: '#000000',
  },
}
SCSS
$custom: #7638c5;
$custom-light: #a474d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7638c5",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 266.383,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49927,
    "c": 0.20584,
    "h": 298.7
  },
  "luminance": 0.10711
}

Semantic roles & 50–950 ramp

primary
#7638C5
secondary
#B0CD8C
accent
#DF499D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7638C5

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

Preview Lab → · Contrast checker → · Palette generator →

#7638C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva