#6256E2#6256E2

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

Color values

HEX#6256E2
RGBrgb(98, 86, 226)
HSLhsl(245, 71%, 61%)
HSVhsv(245, 62%, 89%)
CMYKcmyk(56.6%, 61.9%, 0%, 11.4%)
CIE-LABlab(45.28, 43.27, -69.89)
CIE-LCHlch(45.28, 82.20, 301.77°)
OKLaboklab(54.63% 0.0393 -0.2008)
OKLCHoklch(54.63% 0.205 281.1)
XYZxyz(22.0880, 14.7418, 73.6183)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256E2 #D6E256
analogous
#5690E2 #6256E2 #A856E2
triadic
#6256E2 #E26256 #56E262
tetradic
#6256E2 #E25690 #D6E256 #56E2A8
square
#6256E2 #E25690 #D6E256 #56E2A8
split-complementary
#6256E2 #E2A856 #90E256
monochromatic
#271CA2 #3425D6 #6256E2 #938AEB #C3BEF4

Accessibility & contrast

On white

5.32
#6256E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#6256E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256E2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256E2#FFFFFF#000000##FFFFFF
##6256E21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#1A7894
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6256e2;
/* rgb */ color: rgb(98, 86, 226);
/* oklch */ color: oklch(54.6% 0.205 281.1);
Tailwind
colors: {
  custom: {
    50: '#9a86ec',
    500: '#6256e2',
    950: '#000000',
  },
}
SCSS
$custom: #6256e2;
$custom-light: #9a86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6256e2",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 245.143,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54627,
    "c": 0.20464,
    "h": 281.1
  },
  "luminance": 0.14743
}

Semantic roles & 50–950 ramp

primary
#6256E2
secondary
#E0E4B0
accent
#D313C2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6256E2

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

Preview Lab → · Contrast checker → · Palette generator →

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