#502EFB#502EFB

#502EFB is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 50.5% C 0.275 H 277.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#502EFB
RGBrgb(80, 46, 251)
HSLhsl(250, 96%, 58%)
HSVhsv(250, 82%, 98%)
CMYKcmyk(68.1%, 81.7%, 0%, 1.6%)
CIE-LABlab(38.94, 68.76, -94.46)
CIE-LCHlch(38.94, 116.84, 306.05°)
OKLaboklab(50.46% 0.036 -0.2729)
OKLCHoklch(50.46% 0.275 277.5)
XYZxyz(21.6922, 10.6225, 92.1553)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502EFB #D9FB2E
analogous
#2E72FB #502EFB #B62EFB
triadic
#502EFB #FB502E #2EFB50
tetradic
#502EFB #FB2E72 #D9FB2E #2EFBB6
square
#502EFB #FB2E72 #D9FB2E #2EFBB6
split-complementary
#502EFB #FBB62E #72FB2E
monochromatic
#1F03AB #2A04E7 #502EFB #826AFC #B5A6FD

Accessibility & contrast

On white

6.72
#502EFB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#502EFB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #502EFB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502EFB#FFFFFF#000000##FFFFFF
##502EFB1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064FF
Deuteranopia (green-blind)
#0053F8
Tritanopia (blue-blind)
#007098
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #502efb;
/* rgb */ color: rgb(80, 46, 251);
/* oklch */ color: oklch(50.5% 0.275 277.5);
Tailwind
colors: {
  custom: {
    50: '#996ffe',
    500: '#502efb',
    950: '#000000',
  },
}
SCSS
$custom: #502efb;
$custom-light: #996ffe;
$custom-dark: #000000;
JSON
{
  "hex": "#502efb",
  "rgb": {
    "r": 80,
    "g": 46,
    "b": 251
  },
  "hsl": {
    "h": 249.951,
    "s": 96.244,
    "l": 58.235
  },
  "oklch": {
    "l": 0.50464,
    "c": 0.27526,
    "h": 277.5
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#502EFB
secondary
#DEEB9A
accent
#FF29DB
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86

Preview Lab

Preview with #502EFB

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

Preview Lab → · Contrast checker → · Palette generator →

#502EFB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva