#7F7DEC#7F7DEC

#7F7DEC is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.3% C 0.162 H 281.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7F7DEC
RGBrgb(127, 125, 236)
HSLhsl(241, 74%, 71%)
HSVhsv(241, 47%, 93%)
CMYKcmyk(46.2%, 47%, 0%, 7.5%)
CIE-LABlab(57.30, 29.03, -56.00)
CIE-LCHlch(57.30, 63.08, 297.41°)
OKLaboklab(64.33% 0.0327 -0.159)
OKLCHoklch(64.33% 0.162 281.6)
XYZxyz(31.2218, 25.2339, 82.5661)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7DEC #EAEC7D
analogous
#7DB2EC #7F7DEC #B67DEC
triadic
#7F7DEC #EC7F7D #7DEC7F
tetradic
#7F7DEC #EC7DB2 #EAEC7D #7DECB6
square
#7F7DEC #EC7DB2 #EAEC7D #7DECB6
split-complementary
#7F7DEC #ECB67D #B2EC7D
monochromatic
#221ED0 #4A48E4 #7F7DEC #B4B2F4 #E5E4FB

Accessibility & contrast

On white

3.47
#7F7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#7F7DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7DEC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7DEC#FFFFFF#000000##000000
##7F7DEC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8EF0
Deuteranopia (green-blind)
#4786EA
Tritanopia (blue-blind)
#5994A9
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #7f7dec;
/* rgb */ color: rgb(127, 125, 236);
/* oklch */ color: oklch(64.3% 0.162 281.6);
Tailwind
colors: {
  custom: {
    50: '#aaa2f3',
    500: '#7f7dec',
    950: '#000000',
  },
}
SCSS
$custom: #7f7dec;
$custom-light: #aaa2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7dec",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 241.081,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64333,
    "c": 0.16234,
    "h": 281.6
  },
  "luminance": 0.25235
}

Semantic roles & 50–950 ramp

primary
#7F7DEC
secondary
#F1F1D3
accent
#D70FD3
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #7F7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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