#6255EC#6255EC

#6255EC is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.3% C 0.218 H 280.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#6255EC
RGBrgb(98, 85, 236)
HSLhsl(245, 80%, 63%)
HSVhsv(245, 64%, 93%)
CMYKcmyk(58.5%, 64%, 0%, 7.5%)
CIE-LABlab(45.84, 46.93, -74.63)
CIE-LCHlch(45.84, 88.16, 302.16°)
OKLaboklab(55.28% 0.0393 -0.2148)
OKLCHoklch(55.28% 0.218 280.4)
XYZxyz(23.4211, 15.1482, 81.0303)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255EC #DFEC55
analogous
#5593EC #6255EC #AE55EC
triadic
#6255EC #EC6255 #55EC62
tetradic
#6255EC #EC5593 #DFEC55 #55ECAE
square
#6255EC #EC5593 #DFEC55 #55ECAE
split-complementary
#6255EC #ECAE55 #93EC55
monochromatic
#2214B3 #2F1EE6 #6255EC #958CF2 #C8C3F8

Accessibility & contrast

On white

5.21
#6255EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#6255EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255EC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255EC#FFFFFF#000000##FFFFFF
##6255EC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F1
Deuteranopia (green-blind)
#0067E9
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6255ec;
/* rgb */ color: rgb(98, 85, 236);
/* oklch */ color: oklch(55.3% 0.218 280.4);
Tailwind
colors: {
  custom: {
    50: '#9c86f3',
    500: '#6255ec',
    950: '#000000',
  },
}
SCSS
$custom: #6255ec;
$custom-light: #9c86f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6255ec",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 236
  },
  "hsl": {
    "h": 245.166,
    "s": 79.894,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55275,
    "c": 0.21834,
    "h": 280.4
  },
  "luminance": 0.1515
}

Semantic roles & 50–950 ramp

primary
#6255EC
secondary
#E5EAB3
accent
#DC09CA
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6255EC

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

Preview Lab → · Contrast checker → · Palette generator →

#6255EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva