#7638C2#7638C2

#7638C2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.203 H 299.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7638C2
RGBrgb(118, 56, 194)
HSLhsl(267, 55%, 49%)
HSVhsv(267, 71%, 76%)
CMYKcmyk(39.2%, 71.1%, 0%, 23.9%)
CIE-LABlab(38.85, 53.95, -61.84)
CIE-LCHlch(38.85, 82.07, 311.10°)
OKLaboklab(49.69% 0.0994 -0.1765)
OKLCHoklch(49.69% 0.203 299.4)
XYZxyz(18.6205, 10.5747, 52.0886)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638C2 #84C238
analogous
#383FC2 #7638C2 #BB38C2
triadic
#7638C2 #C27638 #38C276
tetradic
#7638C2 #C2383F #84C238 #38C2BB
square
#7638C2 #C2383F #84C238 #38C2BB
split-complementary
#7638C2 #C2BB38 #3FC238
monochromatic
#3C1D63 #592A93 #7638C2 #9665D2 #B694E0

Accessibility & contrast

On white

6.74
#7638C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7638C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7638C2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638C2#FFFFFF#000000##FFFFFF
##7638C21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#645A79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7638c2;
/* rgb */ color: rgb(118, 56, 194);
/* oklch */ color: oklch(49.7% 0.203 299.4);
Tailwind
colors: {
  custom: {
    50: '#a474d5',
    500: '#7638c2',
    950: '#000000',
  },
}
SCSS
$custom: #7638c2;
$custom-light: #a474d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7638c2",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 266.957,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49687,
    "c": 0.2026,
    "h": 299.4
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#7638C2
secondary
#AECB8A
accent
#DF499B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7638C2

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

Preview Lab → · Contrast checker → · Palette generator →

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