#7874B7#7874B7

#7874B7 is a mid, moderate blue. Relative luminance 0.199; OKLCH L 59.1% C 0.101 H 285.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7874B7
RGBrgb(120, 116, 183)
HSLhsl(244, 32%, 59%)
HSVhsv(244, 37%, 72%)
CMYKcmyk(34.4%, 36.6%, 0%, 28.2%)
CIE-LABlab(51.73, 17.54, -34.86)
CIE-LCHlch(51.73, 39.02, 296.72°)
OKLaboklab(59.06% 0.0272 -0.0975)
OKLCHoklch(59.06% 0.101 285.6)
XYZxyz(22.5360, 19.9021, 47.4447)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874B7 #B3B774
analogous
#7491B7 #7874B7 #9974B7
triadic
#7874B7 #B77874 #74B778
tetradic
#7874B7 #B77491 #B3B774 #74B799
square
#7874B7 #B77491 #B3B774 #74B799
split-complementary
#7874B7 #B79974 #91B774
monochromatic
#403C74 #56519D #7874B7 #9F9CCC #C6C5E1

Accessibility & contrast

On white

4.22
#7874B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7874B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874B7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874B7#FFFFFF#000000##000000
##7874B71.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7DBA
Deuteranopia (green-blind)
#5E79B5
Tritanopia (blue-blind)
#68818D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7874b7;
/* rgb */ color: rgb(120, 116, 183);
/* oklch */ color: oklch(59.1% 0.101 285.6);
Tailwind
colors: {
  custom: {
    50: '#a19ccd',
    500: '#7874b7',
    950: '#000000',
  },
}
SCSS
$custom: #7874b7;
$custom-light: #a19ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7874b7",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 183
  },
  "hsl": {
    "h": 243.582,
    "s": 31.754,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5906,
    "c": 0.10121,
    "h": 285.6
  },
  "luminance": 0.19903
}

Semantic roles & 50–950 ramp

primary
#7874B7
secondary
#CFD1B6
accent
#C860C2
background
#FAF9FC
surface
#F3F2F9
border
#CDCCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #7874B7

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

Preview Lab → · Contrast checker → · Palette generator →

#7874B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva