#6255EE#6255EE

#6255EE is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.4% C 0.221 H 280.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6255EE
RGBrgb(98, 85, 238)
HSLhsl(245, 82%, 63%)
HSVhsv(245, 64%, 93%)
CMYKcmyk(58.8%, 64.3%, 0%, 6.7%)
CIE-LABlab(45.99, 47.55, -75.49)
CIE-LCHlch(45.99, 89.22, 302.20°)
OKLaboklab(55.44% 0.0391 -0.2173)
OKLCHoklch(55.44% 0.221 280.2)
XYZxyz(23.7132, 15.2650, 82.5692)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255EE #E1EE55
analogous
#5594EE #6255EE #AE55EE
triadic
#6255EE #EE6255 #55EE62
tetradic
#6255EE #EE5594 #E1EE55 #55EEAE
square
#6255EE #EE5594 #E1EE55 #55EEAE
split-complementary
#6255EE #EEAE55 #94EE55
monochromatic
#2012B6 #2F1DE8 #6255EE #958DF4 #C9C4F9

Accessibility & contrast

On white

5.18
#6255EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#6255EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255EE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255EE#FFFFFF#000000##FFFFFF
##6255EE1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F3
Deuteranopia (green-blind)
#0067EB
Tritanopia (blue-blind)
#007C9A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6255ee;
/* rgb */ color: rgb(98, 85, 238);
/* oklch */ color: oklch(55.4% 0.221 280.2);
Tailwind
colors: {
  custom: {
    50: '#9c86f5',
    500: '#6255ee',
    950: '#000000',
  },
}
SCSS
$custom: #6255ee;
$custom-light: #9c86f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6255ee",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 238
  },
  "hsl": {
    "h": 245.098,
    "s": 81.818,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55439,
    "c": 0.22081,
    "h": 280.2
  },
  "luminance": 0.15267
}

Semantic roles & 50–950 ramp

primary
#6255EE
secondary
#E6EBB4
accent
#DE07CC
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6255EE

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

Preview Lab → · Contrast checker → · Palette generator →

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