#6255ED#6255ED

#6255ED is a mid, highly saturated blue. Relative luminance 0.152; OKLCH L 55.4% C 0.220 H 280.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#6255ED
RGBrgb(98, 85, 237)
HSLhsl(245, 81%, 63%)
HSVhsv(245, 64%, 93%)
CMYKcmyk(58.6%, 64.1%, 0%, 7.1%)
CIE-LABlab(45.92, 47.24, -75.06)
CIE-LCHlch(45.92, 88.69, 302.18°)
OKLaboklab(55.36% 0.0392 -0.216)
OKLCHoklch(55.36% 0.22 280.3)
XYZxyz(23.5667, 15.2064, 81.7976)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255ED #E0ED55
analogous
#5594ED #6255ED #AE55ED
triadic
#6255ED #ED6255 #55ED62
tetradic
#6255ED #ED5594 #E0ED55 #55EDAE
square
#6255ED #ED5594 #E0ED55 #55EDAE
split-complementary
#6255ED #EDAE55 #94ED55
monochromatic
#2113B4 #2F1EE7 #6255ED #958CF3 #C8C4F9

Accessibility & contrast

On white

5.20
#6255ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#6255ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255ED
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255ED#FFFFFF#000000##FFFFFF
##6255ED1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F2
Deuteranopia (green-blind)
#0067EA
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6255ed;
/* rgb */ color: rgb(98, 85, 237);
/* oklch */ color: oklch(55.4% 0.220 280.3);
Tailwind
colors: {
  custom: {
    50: '#9c86f4',
    500: '#6255ed',
    950: '#000000',
  },
}
SCSS
$custom: #6255ed;
$custom-light: #9c86f4;
$custom-dark: #000000;
JSON
{
  "hex": "#6255ed",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 237
  },
  "hsl": {
    "h": 245.132,
    "s": 80.851,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55357,
    "c": 0.21957,
    "h": 280.3
  },
  "luminance": 0.15208
}

Semantic roles & 50–950 ramp

primary
#6255ED
secondary
#E5EAB4
accent
#DD08CB
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6255ED

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

Preview Lab → · Contrast checker → · Palette generator →

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