#7638B2#7638B2

#7638B2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.185 H 303.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7638B2
RGBrgb(118, 56, 178)
HSLhsl(270, 52%, 46%)
HSVhsv(270, 69%, 70%)
CMYKcmyk(33.7%, 68.5%, 0%, 30.2%)
CIE-LABlab(37.65, 50.01, -54.38)
CIE-LCHlch(37.65, 73.88, 312.60°)
OKLaboklab(48.45% 0.102 -0.1546)
OKLCHoklch(48.45% 0.185 303.4)
XYZxyz(16.9194, 9.8943, 43.1293)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638B2 #74B238
analogous
#3938B2 #7638B2 #B238B1
triadic
#7638B2 #B27638 #38B276
tetradic
#7638B2 #B23938 #74B238 #38B1B2
square
#7638B2 #B23938 #74B238 #38B1B2
split-complementary
#7638B2 #B1B238 #38B239
monochromatic
#381B55 #572983 #7638B2 #955CCC #B38ADA

Accessibility & contrast

On white

7.05
#7638B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7638B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7638B2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638B2#FFFFFF#000000##FFFFFF
##7638B21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#6A5470
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7638b2;
/* rgb */ color: rgb(118, 56, 178);
/* oklch */ color: oklch(48.5% 0.185 303.4);
Tailwind
colors: {
  custom: {
    50: '#a273ca',
    500: '#7638b2',
    950: '#000000',
  },
}
SCSS
$custom: #7638b2;
$custom-light: #a273ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7638b2",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 270.492,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48453,
    "c": 0.18519,
    "h": 303.4
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#7638B2
secondary
#A2C581
accent
#DC4C93
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7638B2

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

Preview Lab → · Contrast checker → · Palette generator →

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