#7638AC#7638AC

#7638AC is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.0% C 0.179 H 305.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7638AC
RGBrgb(118, 56, 172)
HSLhsl(272, 51%, 45%)
HSVhsv(272, 67%, 67%)
CMYKcmyk(31.4%, 67.4%, 0%, 32.5%)
CIE-LABlab(37.22, 48.56, -51.51)
CIE-LCHlch(37.22, 70.79, 313.31°)
OKLaboklab(48.01% 0.1027 -0.1461)
OKLCHoklch(48.01% 0.179 305.1)
XYZxyz(16.3301, 9.6586, 40.0257)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638AC #6EAC38
analogous
#3C38AC #7638AC #AC38A8
triadic
#7638AC #AC7638 #38AC76
tetradic
#7638AC #AC3C38 #6EAC38 #38A8AC
square
#7638AC #AC3C38 #6EAC38 #38A8AC
split-complementary
#7638AC #A8AC38 #38AC3C
monochromatic
#371A50 #56297E #7638AC #9458C9 #B287D8

Accessibility & contrast

On white

7.16
#7638AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7638AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7638AC
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638AC#FFFFFF#000000##FFFFFF
##7638AC1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#1358A9
Tritanopia (blue-blind)
#6C526D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7638ac;
/* rgb */ color: rgb(118, 56, 172);
/* oklch */ color: oklch(48.0% 0.179 305.1);
Tailwind
colors: {
  custom: {
    50: '#a273c5',
    500: '#7638ac',
    950: '#000000',
  },
}
SCSS
$custom: #7638ac;
$custom-light: #a273c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7638ac",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 272.069,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48009,
    "c": 0.17862,
    "h": 305.1
  },
  "luminance": 0.09658
}

Semantic roles & 50–950 ramp

primary
#7638AC
secondary
#9EC27E
accent
#DA4D8F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7638AC

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

Preview Lab → · Contrast checker → · Palette generator →

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