#7874CD#7874CD

#7874CD is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.3% C 0.133 H 283.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7874CD
RGBrgb(120, 116, 205)
HSLhsl(243, 47%, 63%)
HSVhsv(243, 43%, 80%)
CMYKcmyk(41.5%, 43.4%, 0%, 19.6%)
CIE-LABlab(52.83, 23.71, -45.72)
CIE-LCHlch(52.83, 51.50, 297.42°)
OKLaboklab(60.26% 0.0315 -0.1291)
OKLCHoklch(60.26% 0.133 283.7)
XYZxyz(25.0074, 20.8906, 60.4604)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874CD #C9CD74
analogous
#749CCD #7874CD #A574CD
triadic
#7874CD #CD7874 #74CD78
tetradic
#7874CD #CD749C #C9CD74 #74CDA5
square
#7874CD #CD749C #C9CD74 #74CDA5
split-complementary
#7874CD #CDA574 #9CCD74
monochromatic
#393592 #4C47BD #7874CD #A4A1DD #CFCEED

Accessibility & contrast

On white

4.06
#7874CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7874CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874CD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874CD#FFFFFF#000000##000000
##7874CD1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5381D0
Deuteranopia (green-blind)
#507BCB
Tritanopia (blue-blind)
#5F8696
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7874cd;
/* rgb */ color: rgb(120, 116, 205);
/* oklch */ color: oklch(60.3% 0.133 283.7);
Tailwind
colors: {
  custom: {
    50: '#a39cdd',
    500: '#7874cd',
    950: '#000000',
  },
}
SCSS
$custom: #7874cd;
$custom-light: #a39cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7874cd",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 242.697,
    "s": 47.09,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60262,
    "c": 0.13287,
    "h": 283.7
  },
  "luminance": 0.20892
}

Semantic roles & 50–950 ramp

primary
#7874CD
secondary
#DDDEBE
accent
#BA2BB4
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7874CD

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

Preview Lab → · Contrast checker → · Palette generator →

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