#6254ED#6254ED

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

Color values

HEX#6254ED
RGBrgb(98, 84, 237)
HSLhsl(245, 81%, 63%)
HSVhsv(245, 65%, 93%)
CMYKcmyk(58.6%, 64.6%, 0%, 7.1%)
CIE-LABlab(45.70, 47.81, -75.41)
CIE-LCHlch(45.70, 89.29, 302.37°)
OKLaboklab(55.2% 0.0401 -0.2171)
OKLCHoklch(55.2% 0.221 280.5)
XYZxyz(23.4886, 15.0501, 81.7716)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254ED #DFED54
analogous
#5493ED #6254ED #AE54ED
triadic
#6254ED #ED6254 #54ED62
tetradic
#6254ED #ED5493 #DFED54 #54EDAE
square
#6254ED #ED5493 #DFED54 #54EDAE
split-complementary
#6254ED #EDAE54 #93ED54
monochromatic
#2213B4 #2F1DE7 #6254ED #958BF3 #C8C3F9

Accessibility & contrast

On white

5.24
#6254ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#6254ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254ED
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254ED#FFFFFF#000000##FFFFFF
##6254ED1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F2
Deuteranopia (green-blind)
#0066EA
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6254ed;
/* rgb */ color: rgb(98, 84, 237);
/* oklch */ color: oklch(55.2% 0.221 280.5);
Tailwind
colors: {
  custom: {
    50: '#9c85f4',
    500: '#6254ed',
    950: '#000000',
  },
}
SCSS
$custom: #6254ed;
$custom-light: #9c85f4;
$custom-dark: #000000;
JSON
{
  "hex": "#6254ed",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 245.49,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.55203,
    "c": 0.22073,
    "h": 280.5
  },
  "luminance": 0.15052
}

Semantic roles & 50–950 ramp

primary
#6254ED
secondary
#E5EAB3
accent
#DD08CA
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6254ED

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

Preview Lab → · Contrast checker → · Palette generator →

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