#6255E4#6255E4

#6255E4 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.6% C 0.208 H 281.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#6255E4
RGBrgb(98, 85, 228)
HSLhsl(245, 73%, 61%)
HSVhsv(245, 63%, 89%)
CMYKcmyk(57%, 62.7%, 0%, 10.6%)
CIE-LABlab(45.21, 44.47, -71.13)
CIE-LCHlch(45.21, 83.89, 302.01°)
OKLaboklab(54.63% 0.04 -0.2045)
OKLCHoklch(54.63% 0.208 281.1)
XYZxyz(22.2847, 14.6936, 75.0456)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255E4 #D7E455
analogous
#5590E4 #6255E4 #AA55E4
triadic
#6255E4 #E46255 #55E462
tetradic
#6255E4 #E45590 #D7E455 #55E4AA
square
#6255E4 #E45590 #D7E455 #55E4AA
split-complementary
#6255E4 #E4AA55 #90E455
monochromatic
#271AA4 #3323D9 #6255E4 #938AEC #C4BFF5

Accessibility & contrast

On white

5.33
#6255E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#6255E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255E4
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255E4#FFFFFF#000000##FFFFFF
##6255E41.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E9
Deuteranopia (green-blind)
#0066E1
Tritanopia (blue-blind)
#157895
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6255e4;
/* rgb */ color: rgb(98, 85, 228);
/* oklch */ color: oklch(54.6% 0.208 281.1);
Tailwind
colors: {
  custom: {
    50: '#9a86ee',
    500: '#6255e4',
    950: '#000000',
  },
}
SCSS
$custom: #6255e4;
$custom-light: #9a86ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6255e4",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 228
  },
  "hsl": {
    "h": 245.455,
    "s": 72.589,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54626,
    "c": 0.20838,
    "h": 281.1
  },
  "luminance": 0.14695
}

Semantic roles & 50–950 ramp

primary
#6255E4
secondary
#E0E5B0
accent
#D511C3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6255E4

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

Preview Lab → · Contrast checker → · Palette generator →

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