#646B28#646B28

#646B28 is a mid, moderate yellow. Relative luminance 0.134; OKLCH L 50.7% C 0.090 H 114.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#646B28
RGBrgb(100, 107, 40)
HSLhsl(66, 46%, 29%)
HSVhsv(66, 63%, 42%)
CMYKcmyk(6.5%, 0%, 62.6%, 58%)
CIE-LABlab(43.33, -12.83, 35.72)
CIE-LCHlch(43.33, 37.95, 109.75°)
OKLaboklab(50.7% -0.0378 0.0822)
OKLCHoklch(50.7% 0.09 114.7)
XYZxyz(10.8965, 13.3781, 4.0153)
Luminance0.1338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646B28 #2F286B
analogous
#6B5128 #646B28 #436B28
triadic
#646B28 #28646B #6B2864
tetradic
#646B28 #286B51 #2F286B #6B2843
square
#646B28 #286B51 #2F286B #6B2843
split-complementary
#646B28 #28436B #51286B
monochromatic
#151608 #3A3E17 #646B28 #8E9839 #B2BE50

Accessibility & contrast

On white

5.71
#646B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#646B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646B28
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646B28#FFFFFF#000000##FFFFFF
##646B281.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726620
Deuteranopia (green-blind)
#72672C
Tritanopia (blue-blind)
#6A655D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #646b28;
/* rgb */ color: rgb(100, 107, 40);
/* oklch */ color: oklch(50.7% 0.090 114.7);
Tailwind
colors: {
  custom: {
    50: '#929565',
    500: '#646b28',
    950: '#000000',
  },
}
SCSS
$custom: #646b28;
$custom-light: #929565;
$custom-dark: #000000;
JSON
{
  "hex": "#646b28",
  "rgb": {
    "r": 100,
    "g": 107,
    "b": 40
  },
  "hsl": {
    "h": 66.269,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50701,
    "c": 0.09049,
    "h": 114.7
  },
  "luminance": 0.13378
}

Semantic roles & 50–950 ramp

primary
#646B28
secondary
#59519D
accent
#53D560
background
#F9F9F6
surface
#F1F1EB
border
#CBCBC6
text
#0D0D06
muted
#7E7E7A

Preview Lab

Preview with #646B28

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

Preview Lab → · Contrast checker → · Palette generator →

#646B28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva