#646B1F#646B1F

#646B1F is a mid, moderate yellow. Relative luminance 0.133; OKLCH L 50.6% C 0.098 H 114.5°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#646B1F
RGBrgb(100, 107, 31)
HSLhsl(66, 55%, 27%)
HSVhsv(66, 71%, 42%)
CMYKcmyk(6.5%, 0%, 71%, 58%)
CIE-LABlab(43.25, -13.49, 39.79)
CIE-LCHlch(43.25, 42.01, 108.73°)
OKLaboklab(50.61% -0.0407 0.0894)
OKLCHoklch(50.61% 0.098 114.5)
XYZxyz(10.7608, 13.3238, 3.3009)
Luminance0.1332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646B1F #261F6B
analogous
#6B4C1F #646B1F #3E6B1F
triadic
#646B1F #1F646B #6B1F64
tetradic
#646B1F #1F6B4C #261F6B #6B1F3E
square
#646B1F #1F6B4C #261F6B #6B1F3E
split-complementary
#646B1F #1F3E6B #4C1F6B
monochromatic
#161807 #383C11 #646B1F #909A2D #BAC73D

Accessibility & contrast

On white

5.73
#646B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#646B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646B1F
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646B1F#FFFFFF#000000##FFFFFF
##646B1F1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736614
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#6B655C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #646b1f;
/* rgb */ color: rgb(100, 107, 31);
/* oklch */ color: oklch(50.6% 0.098 114.5);
Tailwind
colors: {
  custom: {
    50: '#939560',
    500: '#646b1f',
    950: '#000000',
  },
}
SCSS
$custom: #646b1f;
$custom-light: #939560;
$custom-dark: #000000;
JSON
{
  "hex": "#646b1f",
  "rgb": {
    "r": 100,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 65.526,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50611,
    "c": 0.09821,
    "h": 114.5
  },
  "luminance": 0.13324
}

Semantic roles & 50–950 ramp

primary
#646B1F
secondary
#4F479F
accent
#49DE57
background
#F9F9F5
surface
#F2F1EA
border
#CCCBC6
text
#0D0D05
muted
#7E7E79

Preview Lab

Preview with #646B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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