#6255EB#6255EB

#6255EB is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.2% C 0.217 H 280.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#6255EB
RGBrgb(98, 85, 235)
HSLhsl(245, 79%, 63%)
HSVhsv(245, 64%, 92%)
CMYKcmyk(58.3%, 63.8%, 0%, 7.8%)
CIE-LABlab(45.76, 46.62, -74.19)
CIE-LCHlch(45.76, 87.63, 302.15°)
OKLaboklab(55.19% 0.0394 -0.2135)
OKLCHoklch(55.19% 0.217 280.5)
XYZxyz(23.2762, 15.0902, 80.2673)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255EB #DEEB55
analogous
#5593EB #6255EB #AD55EB
triadic
#6255EB #EB6255 #55EB62
tetradic
#6255EB #EB5593 #DEEB55 #55EBAD
square
#6255EB #EB5593 #DEEB55 #55EBAD
split-complementary
#6255EB #EBAD55 #93EB55
monochromatic
#2215B1 #2F1EE5 #6255EB #958CF1 #C7C3F8

Accessibility & contrast

On white

5.23
#6255EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#6255EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255EB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255EB#FFFFFF#000000##FFFFFF
##6255EB1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0067E8
Tritanopia (blue-blind)
#007B98
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6255eb;
/* rgb */ color: rgb(98, 85, 235);
/* oklch */ color: oklch(55.2% 0.217 280.5);
Tailwind
colors: {
  custom: {
    50: '#9b86f3',
    500: '#6255eb',
    950: '#000000',
  },
}
SCSS
$custom: #6255eb;
$custom-light: #9b86f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6255eb",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 235
  },
  "hsl": {
    "h": 245.2,
    "s": 78.947,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55193,
    "c": 0.21711,
    "h": 280.5
  },
  "luminance": 0.15092
}

Semantic roles & 50–950 ramp

primary
#6255EB
secondary
#E4E9B3
accent
#DB0AC9
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6255EB

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

Preview Lab → · Contrast checker → · Palette generator →

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