#7638AB#7638AB

#7638AB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.9% C 0.178 H 305.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7638AB
RGBrgb(118, 56, 171)
HSLhsl(272, 51%, 45%)
HSVhsv(272, 67%, 67%)
CMYKcmyk(31%, 67.3%, 0%, 32.9%)
CIE-LABlab(37.15, 48.32, -51.02)
CIE-LCHlch(37.15, 70.27, 313.44°)
OKLaboklab(47.94% 0.1028 -0.1447)
OKLCHoklch(47.94% 0.178 305.4)
XYZxyz(16.2345, 9.6203, 39.5218)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638AB #6DAB38
analogous
#3D38AB #7638AB #AB38A7
triadic
#7638AB #AB7638 #38AB76
tetradic
#7638AB #AB3D38 #6DAB38 #38A7AB
square
#7638AB #AB3D38 #6DAB38 #38A7AB
split-complementary
#7638AB #A7AB38 #38AB3D
monochromatic
#361A4F #56297D #7638AB #9458C8 #B286D7

Accessibility & contrast

On white

7.18
#7638AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7638AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7638AB
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638AB#FFFFFF#000000##FFFFFF
##7638AB1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#1558A8
Tritanopia (blue-blind)
#6D516D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7638ab;
/* rgb */ color: rgb(118, 56, 171);
/* oklch */ color: oklch(47.9% 0.178 305.4);
Tailwind
colors: {
  custom: {
    50: '#a273c5',
    500: '#7638ab',
    950: '#000000',
  },
}
SCSS
$custom: #7638ab;
$custom-light: #a273c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7638ab",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 272.348,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47936,
    "c": 0.17753,
    "h": 305.4
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#7638AB
secondary
#9DC17D
accent
#DA4E8E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7638AB

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

Preview Lab → · Contrast checker → · Palette generator →

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