#7F7BB2#7F7BB2

#7F7BB2 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.8% C 0.083 H 287.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F7BB2
RGBrgb(127, 123, 178)
HSLhsl(244, 26%, 59%)
HSVhsv(244, 31%, 70%)
CMYKcmyk(28.7%, 30.9%, 0%, 30.2%)
CIE-LABlab(53.91, 14.11, -28.52)
CIE-LCHlch(53.91, 31.82, 296.32°)
OKLaboklab(60.81% 0.0242 -0.0791)
OKLCHoklch(60.81% 0.083 287)
XYZxyz(23.8692, 21.8918, 45.0788)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7BB2 #AEB27B
analogous
#7B93B2 #7F7BB2 #9B7BB2
triadic
#7F7BB2 #B27F7B #7BB27F
tetradic
#7F7BB2 #B27B93 #AEB27B #7BB29B
square
#7F7BB2 #B27B93 #AEB27B #7BB29B
split-complementary
#7F7BB2 #B29B7B #93B27B
monochromatic
#454271 #5D5897 #7F7BB2 #A4A2C9 #CAC8DF

Accessibility & contrast

On white

3.90
#7F7BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7F7BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7BB2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7BB2#FFFFFF#000000##000000
##7F7BB21.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C82B4
Deuteranopia (green-blind)
#6B7FB1
Tritanopia (blue-blind)
#73858F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f7bb2;
/* rgb */ color: rgb(127, 123, 178);
/* oklch */ color: oklch(60.8% 0.083 287.0);
Tailwind
colors: {
  custom: {
    50: '#a5a1c9',
    500: '#7f7bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f7bb2;
$custom-light: #a5a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7bb2",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 244.364,
    "s": 26.316,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60806,
    "c": 0.08272,
    "h": 287
  },
  "luminance": 0.21892
}

Semantic roles & 50–950 ramp

primary
#7F7BB2
secondary
#CECFBA
accent
#C365BC
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #7F7BB2

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

Preview Lab → · Contrast checker → · Palette generator →

#7F7BB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva