#7F7AFE#7F7AFE

#7F7AFE is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.9% C 0.190 H 281.4°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7F7AFE
RGBrgb(127, 122, 254)
HSLhsl(242, 99%, 74%)
HSVhsv(242, 52%, 100%)
CMYKcmyk(50%, 52%, 0%, 0.4%)
CIE-LABlab(57.64, 36.11, -65.42)
CIE-LCHlch(57.64, 74.72, 298.90°)
OKLaboklab(64.93% 0.0376 -0.1867)
OKLCHoklch(64.93% 0.19 281.4)
XYZxyz(33.5959, 25.5850, 96.9149)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7AFE #F9FE7A
analogous
#7AB7FE #7F7AFE #C17AFE
triadic
#7F7AFE #FE7F7A #7AFE7F
tetradic
#7F7AFE #FE7AB7 #F9FE7A #7AFEC1
square
#7F7AFE #FE7AB7 #F9FE7A #7AFEC1
split-complementary
#7F7AFE #FEC17A #B7FE7A
monochromatic
#0B02FC #453DFE #7F7AFE #B9B7FE #E2E1FF

Accessibility & contrast

On white

3.43
#7F7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#7F7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7AFE
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7AFE#FFFFFF#000000##000000
##7F7AFE1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#348FFF
Deuteranopia (green-blind)
#2686FB
Tritanopia (blue-blind)
#4D97B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #7f7afe;
/* rgb */ color: rgb(127, 122, 254);
/* oklch */ color: oklch(64.9% 0.190 281.4);
Tailwind
colors: {
  custom: {
    50: '#aca0ff',
    500: '#7f7afe',
    950: '#000000',
  },
}
SCSS
$custom: #7f7afe;
$custom-light: #aca0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7afe",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 242.273,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.64928,
    "c": 0.19045,
    "h": 281.4
  },
  "luminance": 0.25587
}

Semantic roles & 50–950 ramp

primary
#7F7AFE
secondary
#F6F7D4
accent
#E600DD
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7F7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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