#7628B2#7628B2

#7628B2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.204 H 305.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7628B2
RGBrgb(118, 40, 178)
HSLhsl(274, 63%, 43%)
HSVhsv(274, 78%, 70%)
CMYKcmyk(33.7%, 77.5%, 0%, 30.2%)
CIE-LABlab(35.17, 57.03, -58.41)
CIE-LCHlch(35.17, 81.63, 314.31°)
OKLaboklab(46.69% 0.1175 -0.1663)
OKLCHoklch(46.69% 0.204 305.2)
XYZxyz(16.2641, 8.5836, 42.9108)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7628B2 #64B228
analogous
#3128B2 #7628B2 #B228A9
triadic
#7628B2 #B27628 #28B276
tetradic
#7628B2 #B23128 #64B228 #28A9B2
square
#7628B2 #B23128 #64B228 #28A9B2
split-complementary
#7628B2 #A9B228 #28B231
monochromatic
#34124E #551D80 #7628B2 #9543D5 #B175E0

Accessibility & contrast

On white

7.73
#7628B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7628B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7628B2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7628B2#FFFFFF#000000##FFFFFF
##7628B21.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#6B4B6C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7628b2;
/* rgb */ color: rgb(118, 40, 178);
/* oklch */ color: oklch(46.7% 0.204 305.2);
Tailwind
colors: {
  custom: {
    50: '#a36bca',
    500: '#7628b2',
    950: '#000000',
  },
}
SCSS
$custom: #7628b2;
$custom-light: #a36bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7628b2",
  "rgb": {
    "r": 118,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 273.913,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46694,
    "c": 0.20368,
    "h": 305.2
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#7628B2
secondary
#95C76F
accent
#E64189
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7628B2

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

Preview Lab → · Contrast checker → · Palette generator →

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