#7638AF#7638AF

#7638AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.182 H 304.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7638AF
RGBrgb(118, 56, 175)
HSLhsl(271, 52%, 45%)
HSVhsv(271, 68%, 69%)
CMYKcmyk(32.6%, 68%, 0%, 31.4%)
CIE-LABlab(37.44, 49.28, -52.95)
CIE-LCHlch(37.44, 72.33, 312.95°)
OKLaboklab(48.23% 0.1024 -0.1504)
OKLCHoklch(48.23% 0.182 304.2)
XYZxyz(16.6215, 9.7751, 41.5603)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7638AF #71AF38
analogous
#3B38AF #7638AF #AF38AC
triadic
#7638AF #AF7638 #38AF76
tetradic
#7638AF #AF3B38 #71AF38 #38ACAF
square
#7638AF #AF3B38 #71AF38 #38ACAF
split-complementary
#7638AF #ACAF38 #38AF3B
monochromatic
#371A52 #572981 #7638AF #945ACA #B288D9

Accessibility & contrast

On white

7.11
#7638AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7638AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7638AF
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7638AF#FFFFFF#000000##FFFFFF
##7638AF1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#0958AC
Tritanopia (blue-blind)
#6B536F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7638af;
/* rgb */ color: rgb(118, 56, 175);
/* oklch */ color: oklch(48.2% 0.182 304.2);
Tailwind
colors: {
  custom: {
    50: '#a273c8',
    500: '#7638af',
    950: '#000000',
  },
}
SCSS
$custom: #7638af;
$custom-light: #a273c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7638af",
  "rgb": {
    "r": 118,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 271.261,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.18191,
    "h": 304.2
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#7638AF
secondary
#A0C380
accent
#DB4D91
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7638AF

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

Preview Lab → · Contrast checker → · Palette generator →

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