#6256F5#6256F5

#6256F5 is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 56.2% C 0.228 H 279.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#6256F5
RGBrgb(98, 86, 245)
HSLhsl(245, 89%, 65%)
HSVhsv(245, 65%, 96%)
CMYKcmyk(60%, 64.9%, 0%, 3.9%)
CIE-LABlab(46.77, 49.13, -78.16)
CIE-LCHlch(46.77, 92.32, 302.15°)
OKLaboklab(56.17% 0.0376 -0.2251)
OKLCHoklch(56.17% 0.228 279.5)
XYZxyz(24.8410, 15.8430, 88.1175)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256F5 #E9F556
analogous
#569AF5 #6256F5 #B156F5
triadic
#6256F5 #F56256 #56F562
tetradic
#6256F5 #F5569A #E9F556 #56F5B1
square
#6256F5 #F5569A #E9F556 #56F5B1
split-complementary
#6256F5 #F5B156 #9AF556
monochromatic
#1A0CC5 #2C1CF2 #6256F5 #9890F8 #CDCAFC

Accessibility & contrast

On white

5.04
#6256F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#6256F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256F5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256F5#FFFFFF#000000##FFFFFF
##6256F51.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FA
Deuteranopia (green-blind)
#0069F2
Tritanopia (blue-blind)
#007F9E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #6256f5;
/* rgb */ color: rgb(98, 86, 245);
/* oklch */ color: oklch(56.2% 0.228 279.5);
Tailwind
colors: {
  custom: {
    50: '#9d87fa',
    500: '#6256f5',
    950: '#000000',
  },
}
SCSS
$custom: #6256f5;
$custom-light: #9d87fa;
$custom-dark: #000000;
JSON
{
  "hex": "#6256f5",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 245
  },
  "hsl": {
    "h": 244.528,
    "s": 88.827,
    "l": 64.902
  },
  "oklch": {
    "l": 0.56174,
    "c": 0.22824,
    "h": 279.5
  },
  "luminance": 0.15845
}

Semantic roles & 50–950 ramp

primary
#6256F5
secondary
#EAEFB8
accent
#E500D4
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6256F5

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

Preview Lab → · Contrast checker → · Palette generator →

#6256F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva