#7638BC#7638BC

#7638BC is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.196 H 300.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7638BC
RGBrgb(118, 56, 188)
HSLhsl(268, 54%, 48%)
HSVhsv(268, 70%, 74%)
CMYKcmyk(37.2%, 70.2%, 0%, 26.3%)
CIE-LABlab(38.39, 52.46, -59.08)
CIE-LCHlch(38.39, 79.01, 311.61°)
OKLaboklab(49.22% 0.1005 -0.1684)
OKLCHoklch(49.22% 0.196 300.8)
XYZxyz(17.9603, 10.3106, 48.6111)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638BC #7EBC38
analogous
#383CBC #7638BC #B838BC
triadic
#7638BC #BC7638 #38BC76
tetradic
#7638BC #BC383C #7EBC38 #38BCB8
square
#7638BC #BC383C #7EBC38 #38BCB8
split-complementary
#7638BC #BCB838 #3CBC38
monochromatic
#3B1C5E #582A8D #7638BC #9561D0 #B590DE

Accessibility & contrast

On white

6.86
#7638BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7638BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7638BC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638BC#FFFFFF#000000##FFFFFF
##7638BC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#675876
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7638bc;
/* rgb */ color: rgb(118, 56, 188);
/* oklch */ color: oklch(49.2% 0.196 300.8);
Tailwind
colors: {
  custom: {
    50: '#a374d1',
    500: '#7638bc',
    950: '#000000',
  },
}
SCSS
$custom: #7638bc;
$custom-light: #a374d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7638bc",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 268.182,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49216,
    "c": 0.19609,
    "h": 300.8
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

primary
#7638BC
secondary
#AAC987
accent
#DD4A98
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7638BC

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

Preview Lab → · Contrast checker → · Palette generator →

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