#646828#646828

#646828 is a mid, moderate yellow. Relative luminance 0.128; OKLCH L 50.0% C 0.087 H 112.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#646828
RGBrgb(100, 104, 40)
HSLhsl(64, 44%, 28%)
HSVhsv(64, 62%, 41%)
CMYKcmyk(3.8%, 0%, 61.5%, 59.2%)
CIE-LABlab(42.40, -11.15, 34.70)
CIE-LCHlch(42.40, 36.45, 107.82°)
OKLaboklab(49.96% -0.0331 0.0801)
OKLCHoklch(49.96% 0.087 112.4)
XYZxyz(10.5891, 12.7634, 3.9128)
Luminance0.1276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646828 #2C2868
analogous
#684C28 #646828 #446828
triadic
#646828 #286468 #682864
tetradic
#646828 #28684C #2C2868 #682844
square
#646828 #28684C #2C2868 #682844
split-complementary
#646828 #284468 #4C2868
monochromatic
#151609 #393C17 #646828 #8E9439 #B5BB4F

Accessibility & contrast

On white

5.91
#646828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#646828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646828
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646828#FFFFFF#000000##FFFFFF
##6468281.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706321
Deuteranopia (green-blind)
#70652C
Tritanopia (blue-blind)
#6B625A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #646828;
/* rgb */ color: rgb(100, 104, 40);
/* oklch */ color: oklch(50.0% 0.087 112.4);
Tailwind
colors: {
  custom: {
    50: '#929365',
    500: '#646828',
    950: '#000000',
  },
}
SCSS
$custom: #646828;
$custom-light: #929365;
$custom-dark: #000000;
JSON
{
  "hex": "#646828",
  "rgb": {
    "r": 100,
    "g": 104,
    "b": 40
  },
  "hsl": {
    "h": 63.75,
    "s": 44.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49963,
    "c": 0.08661,
    "h": 112.4
  },
  "luminance": 0.12763
}

Semantic roles & 50–950 ramp

primary
#646828
secondary
#56519B
accent
#54D45C
background
#F9F9F6
surface
#F1F1EB
border
#CBCBC6
text
#0D0D06
muted
#7E7E7A

Preview Lab

Preview with #646828

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

Preview Lab → · Contrast checker → · Palette generator →

#646828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva