#7874DD#7874DD

#7874DD is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.2% C 0.155 H 282.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7874DD
RGBrgb(120, 116, 221)
HSLhsl(242, 61%, 66%)
HSVhsv(242, 48%, 87%)
CMYKcmyk(45.7%, 47.5%, 0%, 13.3%)
CIE-LABlab(53.71, 28.36, -53.37)
CIE-LCHlch(53.71, 60.44, 297.99°)
OKLaboklab(61.21% 0.0336 -0.1515)
OKLCHoklch(61.21% 0.155 282.5)
XYZxyz(27.0384, 21.7030, 71.1570)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7874DD #D9DD74
analogous
#74A4DD #7874DD #AC74DD
triadic
#7874DD #DD7874 #74DD78
tetradic
#7874DD #DD74A4 #D9DD74 #74DDAC
square
#7874DD #DD74A4 #D9DD74 #74DDAC
split-complementary
#7874DD #DDAC74 #A4DD74
monochromatic
#2F2AAC #4843D1 #7874DD #A8A5E9 #D8D6F5

Accessibility & contrast

On white

3.93
#7874DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7874DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7874DD
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7874DD#FFFFFF#000000##000000
##7874DD1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4884E1
Deuteranopia (green-blind)
#427DDB
Tritanopia (blue-blind)
#568A9E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7874dd;
/* rgb */ color: rgb(120, 116, 221);
/* oklch */ color: oklch(61.2% 0.155 282.5);
Tailwind
colors: {
  custom: {
    50: '#a49ce8',
    500: '#7874dd',
    950: '#000000',
  },
}
SCSS
$custom: #7874dd;
$custom-light: #a49ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#7874dd",
  "rgb": {
    "r": 120,
    "g": 116,
    "b": 221
  },
  "hsl": {
    "h": 242.286,
    "s": 60.694,
    "l": 66.078
  },
  "oklch": {
    "l": 0.61214,
    "c": 0.1552,
    "h": 282.5
  },
  "luminance": 0.21704
}

Semantic roles & 50–950 ramp

primary
#7874DD
secondary
#E6E8C5
accent
#C81DC2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7874DD

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

Preview Lab → · Contrast checker → · Palette generator →

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