#646F1F#646F1F

#646F1F is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 51.6% C 0.103 H 116.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#646F1F
RGBrgb(100, 111, 31)
HSLhsl(68, 56%, 28%)
HSVhsv(68, 72%, 44%)
CMYKcmyk(9.9%, 0%, 72.1%, 56.5%)
CIE-LABlab(44.49, -15.68, 41.04)
CIE-LCHlch(44.49, 43.93, 110.91°)
OKLaboklab(51.61% -0.0468 0.092)
OKLCHoklch(51.61% 0.103 116.9)
XYZxyz(11.1875, 14.1773, 3.4432)
Luminance0.1418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646F1F #2A1F6F
analogous
#6F521F #646F1F #3C6F1F
triadic
#646F1F #1F646F #6F1F64
tetradic
#646F1F #1F6F52 #2A1F6F #6F1F3C
square
#646F1F #1F6F52 #2A1F6F #6F1F3C
split-complementary
#646F1F #1F3C6F #521F6F
monochromatic
#161807 #393F12 #646F1F #8F9F2C #B6C93F

Accessibility & contrast

On white

5.48
#646F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#646F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646F1F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646F1F#FFFFFF#000000##FFFFFF
##646F1F1.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776912
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#6A695F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #646f1f;
/* rgb */ color: rgb(100, 111, 31);
/* oklch */ color: oklch(51.6% 0.103 116.9);
Tailwind
colors: {
  custom: {
    50: '#939860',
    500: '#646f1f',
    950: '#000000',
  },
}
SCSS
$custom: #646f1f;
$custom-light: #939860;
$custom-dark: #000000;
JSON
{
  "hex": "#646f1f",
  "rgb": {
    "r": 100,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 68.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51605,
    "c": 0.10323,
    "h": 116.9
  },
  "luminance": 0.14177
}

Semantic roles & 50–950 ramp

primary
#646F1F
secondary
#5347A3
accent
#48E05D
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0D0D05
muted
#7E7E79

Preview Lab

Preview with #646F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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