#7638B3#7638B3

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

Color values

HEX#7638B3
RGBrgb(118, 56, 179)
HSLhsl(270, 52%, 46%)
HSVhsv(270, 69%, 70%)
CMYKcmyk(34.1%, 68.7%, 0%, 29.8%)
CIE-LABlab(37.72, 50.25, -54.85)
CIE-LCHlch(37.72, 74.39, 312.49°)
OKLaboklab(48.53% 0.1018 -0.156)
OKLCHoklch(48.53% 0.186 303.1)
XYZxyz(17.0202, 9.9346, 43.6600)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638B3 #75B338
analogous
#3938B3 #7638B3 #B338B2
triadic
#7638B3 #B37638 #38B376
tetradic
#7638B3 #B33938 #75B338 #38B2B3
square
#7638B3 #B33938 #75B338 #38B2B3
split-complementary
#7638B3 #B2B338 #38B339
monochromatic
#391B56 #572984 #7638B3 #955CCC #B38BDB

Accessibility & contrast

On white

7.03
#7638B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7638B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7638B3
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638B3#FFFFFF#000000##FFFFFF
##7638B31.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#6A5471
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7638b3;
/* rgb */ color: rgb(118, 56, 179);
/* oklch */ color: oklch(48.5% 0.186 303.1);
Tailwind
colors: {
  custom: {
    50: '#a273cb',
    500: '#7638b3',
    950: '#000000',
  },
}
SCSS
$custom: #7638b3;
$custom-light: #a273cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7638b3",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 270.244,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48528,
    "c": 0.18628,
    "h": 303.1
  },
  "luminance": 0.09935
}

Semantic roles & 50–950 ramp

primary
#7638B3
secondary
#A3C582
accent
#DC4C93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7638B3

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

Preview Lab → · Contrast checker → · Palette generator →

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