#7874DA#7874DA

#7874DA is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.0% C 0.151 H 282.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7874DA
RGBrgb(120, 116, 218)
HSLhsl(242, 58%, 65%)
HSVhsv(242, 47%, 85%)
CMYKcmyk(45%, 46.8%, 0%, 14.5%)
CIE-LABlab(53.54, 27.48, -51.95)
CIE-LCHlch(53.54, 58.77, 297.88°)
OKLaboklab(61.03% 0.0333 -0.1473)
OKLCHoklch(61.03% 0.151 282.7)
XYZxyz(26.6423, 21.5446, 69.0708)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874DA #D6DA74
analogous
#74A3DA #7874DA #AB74DA
triadic
#7874DA #DA7874 #74DA78
tetradic
#7874DA #DA74A3 #D6DA74 #74DAAB
square
#7874DA #DA74A3 #D6DA74 #74DAAB
split-complementary
#7874DA #DAAB74 #A3DA74
monochromatic
#312CA7 #4944CD #7874DA #A7A4E7 #D6D5F4

Accessibility & contrast

On white

3.96
#7874DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#7874DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874DA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874DA#FFFFFF#000000##000000
##7874DA1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A83DE
Deuteranopia (green-blind)
#457CD8
Tritanopia (blue-blind)
#58899C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7874da;
/* rgb */ color: rgb(120, 116, 218);
/* oklch */ color: oklch(61.0% 0.151 282.7);
Tailwind
colors: {
  custom: {
    50: '#a49ce6',
    500: '#7874da',
    950: '#000000',
  },
}
SCSS
$custom: #7874da;
$custom-light: #a49ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#7874da",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 218
  },
  "hsl": {
    "h": 242.353,
    "s": 57.955,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61031,
    "c": 0.15106,
    "h": 282.7
  },
  "luminance": 0.21546
}

Semantic roles & 50–950 ramp

primary
#7874DA
secondary
#E5E6C4
accent
#C620BF
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7874DA

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

Preview Lab → · Contrast checker → · Palette generator →

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